How to block an IP from my webserver

For system help, all hardware / software topics NOTE: use Coders Corner for all coders topics.

Moderators: Krom, Grendel

Post Reply
Matrix
DBB Alumni
DBB Alumni
Posts: 763
Joined: Tue Sep 18, 2001 2:01 am
Location: NJ
Contact:

How to block an IP from my webserver

Post by Matrix »

I run a webserver on one of my home machines

Using Apache / Win XP pro / Linksys BEFSR41 router

My problem is I have this 1 IP hammering my server every day. The guy loads the same page over and over again every day, maybe a couple hundred/thousand of times per day.
He's requesting files that are not even hosted on the server anymore, I blocked his IP in the Apache config file so all he gets is 404s, but my server still has to respond to him sending him denied requests.
He's been doing this since early November.
The IP is 65.54.188.146
If u look it up on http://www.arin.net/ itâ??s an MS IP
E-mailing abuse@microsoft.com worth a shot or waste of time?

Does anyone know of a better way then using a 3rd party software firewall to block this guy from my machine, I want to make it so my server or connect doesnâ??t have to send any type of response back to him using my upload.
If not, anyone know of any decent freeware software firewalls?
User avatar
CDN_Merlin
DBB_Master
DBB_Master
Posts: 9781
Joined: Thu Nov 05, 1998 12:01 pm
Location: Capital Of Canada

Post by CDN_Merlin »

send the log to your ISP and they will block him at the routers.
Matrix
DBB Alumni
DBB Alumni
Posts: 763
Joined: Tue Sep 18, 2001 2:01 am
Location: NJ
Contact:

Post by Matrix »

My ISP is anal about running servers, against the TOS
If I told them the problem they wouldnt even care about the guy hammering my connect they'd just be "OMG UR RUNNING A SERVER U WILL DISTROY THE ENTIRE NODE FOR EVERYONE IN UR AREA U MUST STOP NOW OR DIE" ,,, something like that
They even block ports 80, 8080 and some other popular outgoing ports used for servers

even tho my server uses like zero bandwidth they wont care :P
I would of switched ISPs along time ago but all thats ave to me is 768/256 verison DSL

I could just say that the guy is filling the logs on my router I guess, I'll give it a shot
User avatar
CDN_Merlin
DBB_Master
DBB_Master
Posts: 9781
Joined: Thu Nov 05, 1998 12:01 pm
Location: Capital Of Canada

Post by CDN_Merlin »

Other than that, the packets will still come to your router/firewall so your connect will still get hammered.

Try reporting him to HIS ISP.
User avatar
DCrazy
DBB Alumni
DBB Alumni
Posts: 8826
Joined: Wed Mar 15, 2000 3:01 am
Location: Seattle

Post by DCrazy »

Just so you know, that's "msnbot.microsoft.com", the MSN webcrawler. (Open up a command prompt and do "nslookup 65.54.188.146" if you don't believe me.) It's trying to index your site. You could use a robots.txt file to tell it to buzz off.
Matrix
DBB Alumni
DBB Alumni
Posts: 763
Joined: Tue Sep 18, 2001 2:01 am
Location: NJ
Contact:

Post by Matrix »

aye thanks DC, I just stuck a robots.txt on my server
hopefully it'll piss off soon =)

thanks
MD-2389
Defender of the Night
Defender of the Night
Posts: 13477
Joined: Thu Nov 05, 1998 12:01 pm
Location: Olathe, KS
Contact:

Post by MD-2389 »

Just be aware that while you use the robots.txt trick, a certain google search string will allow people to see what exactly you don't want search engines to index.
User avatar
DCrazy
DBB Alumni
DBB Alumni
Posts: 8826
Joined: Wed Mar 15, 2000 3:01 am
Location: Seattle

Post by DCrazy »

I think his primary concern at the moment is getting the MSN bot to stop repeatedly trying to access his site.
User avatar
Krom
DBB Database Master
DBB Database Master
Posts: 16138
Joined: Sun Nov 29, 1998 3:01 am
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Contact:

Post by Krom »

Correct.
Matrix
DBB Alumni
DBB Alumni
Posts: 763
Joined: Tue Sep 18, 2001 2:01 am
Location: NJ
Contact:

Post by Matrix »

I havnt seen the bot hit my server sence 5min after i stuck the robots.txt on the server :D

ty
Post Reply