Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-10-2004, 03:41 PM
WebProWorld Pro
 

Join Date: Sep 2004
Location: Tennessee
Posts: 121
TN Todd RepRank 0
Default Blocking IP addresses, domains (.htaccess help)

I have a forum at one of my sites outdoors-411.com that uses an older version (1.4.4) phpbb. The forum is basically a family friendly forum with topics such as hiking, fishing, canoeing etc.. I keep getting some lowlife registering obscene user names and within his profile he includes links back to his porno site(s), they are usually one of three web sites all registered outside of the US. This particular version of phpBB does not have a verification process such as sending an e-mail, so these user names are displayed for everyone to see. I try to keep them cleaned out but it is a pain to try to keep up with this moron who sometimes registers 5 or more names a day. I guess he is attempting to gain link popularity ?

I have attempted to upgrade the forum to a newer version with no luck at all and the folks at phpBB are little or no help at all with the upgrade. I am not willing to loose my 12,000+ posts by switching to a different forum and I am just not sure how to stop this freak.

Can I use htaccess to completely block access to my site from a particular country?

I am pretty sure I could block him by his IP if I only knew what it was.

The main web site they are trying to promote is a subdomain (which is to vulgar to post) of kahovsky.com but when you go to the main page of that domain you get nothing but some 'holder' page. However the domain is registered in DE which I assume is Germany? Personally I don't care if anyone from Germany can get to my site if it stops this idiot.

This was happening one other time about 3 months ago and I contacted their host they checked my site a couple of times one day and saw the registerations and they dumped him! This time however, I haven't heard back from his current host who I have contacted a couple of times.

What can I do? I am open to all suggestions just to keep this guy from visiting my site at all. Even if it means keeping everyone from his country being kept out as well.

My thinking is if I can block users by IP via htacess it would seem someone smarter than me may know a way to block by country. Surely this is possible. Any advise or information on that would be greatly appreciated.


Thanks in advance for any suggestions!
Reply With Quote
  #2 (permalink)  
Old 10-10-2004, 04:31 PM
WebProWorld Member
 

Join Date: Aug 2004
Location: UK
Posts: 42
Rosalind RepRank 0
Default

First, find out his IP, which may not be German at all, even if that is where this guy lives. For example, AOL users from the UK appear to come from the USA. Likewise the whois info could be untrustworthy. So you have to monitor the IP address.

If it's not a fixed IP this could mean banning a whole range from a major ISP.

I don't know much about your version of phpBB, there may be an option to do this already. I'm fairly sure you can block users by IP in the latest versions. Check your logs and if they don't offer up the info, you need a script on the signup page that records the IP and signup name to your database. PhpBB might already do this, it might pay to dig through their help forums before adding a script of your own.
Reply With Quote
  #3 (permalink)  
Old 10-10-2004, 07:20 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default Banning IP addresses and domain names using .htaccess

Once you've established the visitor's IP address, you can add the following to your .htaccess file

Code:
order allow,deny
deny from 123.123.123.123
allow from all
This would then ban the IP 123.123.123.123 from your site. On visiting, a user from that IP would be shown the 403 "Forbidden Access" error message.

If you're 100% sure that it's the domain name you mentioned, then you could simply ban the whole domain (see below).
Code:
deny from kahovsky.com
Banning access to an individual country would not be effective IMO, they might be physically located in one country, but be hosted in another. One of the many complications of such a global community!

Paul
Reply With Quote
  #4 (permalink)  
Old 10-10-2004, 08:49 PM
WebProWorld Pro
 

Join Date: Sep 2004
Location: Tennessee
Posts: 121
TN Todd RepRank 0
Default

If I knew the IP I could ban them easily, but I have no way of getting it. This version of phpBB only gives it once they make a post which he/they never do. I have no desire at all to wade through 4,000 unique IP's to try to find this persons.

You said "deny from kahovsky.com"

What would this do for me? What is the correlation between this idiots domain name and his ISP?
Reply With Quote
  #5 (permalink)  
Old 10-10-2004, 09:17 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

Quote:
Originally Posted by TN Todd
What would this do for me? What is the correlation between this idiots domain name and his ISP?
I thought you'd said that one of the worst sites they posted was a sub-domain of the kahovsky.com domain? I'm just trying to offer suggestions here.
Reply With Quote
  #6 (permalink)  
Old 10-10-2004, 09:36 PM
WebProWorld Pro
 

Join Date: Sep 2004
Location: Tennessee
Posts: 121
TN Todd RepRank 0
Default

Hi Paul and thanks!

Hope I don't sound to negative, but this guy has me pretty .... agrivated. I really do appreciate all suggestions.

If you go to the main domain kahovsky.com it's just a place holder. The actually links he is using in his profile are along the lines of
gang-rape.kahovsky.com/more-disturbing-stuff-here.html

Any ideas on how to stop this guy are greatly appreciated!!
Reply With Quote
  #7 (permalink)  
Old 10-11-2004, 01:36 AM
Easywebdev's Avatar
WebProWorld Veteran
 

Join Date: Apr 2004
Posts: 328
Easywebdev RepRank 1
Default

Subdomains use the same ip address as the primary domain.
In this case kahovsky.com resolves to 69.50.187.105 so banning that ip will block access from all subdomains.
A .htacces containing
Code:
order allow,deny
deny from 69.50.187.105
allow from all
should keep them out.
__________________
"I have not failed. I have found 10,000 ways that don't work" - Thomas Edison.
"The secret to creativity is knowing how to hide your sources" - Albert Einstein.
Reply With Quote
  #8 (permalink)  
Old 10-11-2004, 06:56 AM
WebProWorld 1,000+ Club
 

Join Date: Sep 2003
Location: Texas
Posts: 1,283
flood6 RepRank 0
Default Logs

Quote:
Originally Posted by Easywebdev
Subdomains use the same ip address as the primary domain.
In this case kahovsky.com resolves to 69.50.187.105 so banning that ip will block access from all subdomains.
A .htacces containing
Code:
order allow,deny
deny from 69.50.187.105
allow from all
should keep them out.
But the spammer in question almost certainly has a different IP (the dark cave he resides in) from the IP where his site is hosted, correct? i.e slap-and-tickle.kahovsky.com has a different IP than his PC.

I think you're going to have to wait and find what day he registers with your site, then go through that day's logs to try and figure out which IP he's at, and ban it.
Reply With Quote
  #9 (permalink)  
Old 10-11-2004, 12:27 PM
WebProWorld Pro
 

Join Date: Sep 2004
Location: Tennessee
Posts: 121
TN Todd RepRank 0
Default

Flood6 Your correct when you said "But the spammer in question almost certainly has a different IP (the dark cave he resides in) from the IP where his site is hosted, correct? i.e slap-and-tickle.kahovsky.com has a different IP than his PC.
"


That's what I was trying to understand. I did use the above advice just to try, but I woke up this morning and he had indeed registered again.

What a jerk!
Reply With Quote
  #10 (permalink)  
Old 10-11-2004, 12:36 PM
WebProWorld Pro
 

Join Date: Sep 2004
Location: Tennessee
Posts: 121
TN Todd RepRank 0
Default

Is there anyway to get find the major ISP's from this guys town?

Here is his contact info that is listed in Who Is

John Kahovsky (s79s@pisem.net)
6th Grosse str, 17
Dusseldorf
null,D-62512
DE
Tel. +91.773064


Also I have tried e-mailing him to try to get a response (and his IP) but he never responds.

I have also contacted his host and they have not responded or even acknowledged my e-mails.
Reply With Quote
  #11 (permalink)  
Old 10-11-2004, 05:20 PM
WebProWorld 1,000+ Club
 

Join Date: Sep 2003
Location: Texas
Posts: 1,283
flood6 RepRank 0
Default Phone Call

You could call him, lol! That would freak him out. Don't do or say anything illegal, just kindly ask him to stop abusing your site.

Have you talked to your host? There is a limit to what they can/will do, but if you ask them to try and find out what IP he is using, they might check your logs for you.
Reply With Quote
  #12 (permalink)  
Old 10-11-2004, 06:33 PM
WebProWorld Pro
 

Join Date: Sep 2004
Location: Tennessee
Posts: 121
TN Todd RepRank 0
Default

Appearantly this jerk is using lots of peoples phpBB forums in the same way. Check out the URL's for the members on this page

http://www.linuxselfhelp.org/phpBB/b...t=1050&sortby=
Reply With Quote
  #13 (permalink)  
Old 10-13-2004, 07:27 PM
WebProWorld Pro
 

Join Date: May 2004
Location: Austin, TX
Posts: 199
steve0 RepRank 0
Default

I am not familiar with the older versions of phpbb.. but using the same idea as the htaccess you could also add a line to the top of the config file that says something like:

<?
$remoteaddress = getenv("REMOTE_ADDR");

if (stristr($remoteaddress,"69.50.187")){
die("

</P><h1 align=center>Server currently undergoing maintenance</h1>");
}
?>

It is simple and clean.. and won't seem confrontational...

but the again .. you could use

die(header("location:http://$remoteaddress"));

programmatically saying "Go back where you came from"


-steve
__________________
Hardcore Programming Solutions and Coffee Drinker
Reply With Quote
  #14 (permalink)  
Old 10-13-2004, 08:25 PM
WebProWorld Pro
 

Join Date: Sep 2004
Location: Tennessee
Posts: 121
TN Todd RepRank 0
Default

I was actually able to track down his IP with some help from my host. I blocked him for a short time but now he's back at it again.

The IP he was using was.
69.50.187.99
Not sure what he's using now. I tried blocking everything between 69.50.187 1-255 but he is still posting a bunch of rape/insect garbage this afternoon.
Reply With Quote
  #15 (permalink)  
Old 10-13-2004, 10:08 PM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

YOu may want to consider switching boards.
Invision board, for example has a feature that allows you to pick up the ip address without them having to post. It has a lot more features too.

There's probably a converter available
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #16 (permalink)  
Old 10-13-2004, 10:22 PM
WebProWorld Pro
 

Join Date: Sep 2004
Location: Tennessee
Posts: 121
TN Todd RepRank 0
Default

I would convert in a heartbeat if I could keep my old posts.

As I understand it the newest version of phpBB also gives the IP upon regitration. The problem is I have tried to upgrade and had a ton of problems and in the end it would work. Their support is useless for real problems.

Plus, this idiot is appearantly changing IP frequently. If I could get a hold of him I would ring his dang neck!

I for the life of me can't figure out why anyone would want to subject a family friendly site to this crap.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0