Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-13-2004, 08:15 PM   #1
yikester
Registered User
 
Join Date: Nov 2002
Posts: 49
Script to block IPs

Hi!
Anybody know of a script that can block IPs receiving a 401 response from the webserver for a certain time? To slow down a DDOS...
yikester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 08:16 PM   #2
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
.htaccess
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 08:19 PM   #3
yikester
Registered User
 
Join Date: Nov 2002
Posts: 49
Yes. But something needs to detect that. I'm looking for a script that does this.

A DDOS comes from a lot of IPs....
yikester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 08:21 PM   #4
uchase/webpry
So Fucking Banned
 
Join Date: Aug 2004
Location: Do you use sex.com's XML feed, try ours and make double the money.
Posts: 2,085
try:

/sbin/route add -host XXX.XXX.XXX.XXX 127.0.0.1
uchase/webpry is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 08:25 PM   #5
yikester
Registered User
 
Join Date: Nov 2002
Posts: 49
Come on guys... I know how to block an IP. :-)

I'm looking for a script that watches HTTP response 401, builds a table, counts the 401s and then pulls the plug for that IP.
yikester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 08:49 PM   #6
zentz
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Posts: 8,053
Quote:
Originally posted by Armed & Hammered
.htaccess
__________________
Programs that owe me money ---- Epassporte.com ~ $2700 | Protraffic.com ~ $2600 | XonDemand.com ~ $3000

Email: [email protected]
zentz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 09:04 PM   #7
Doc911
Confirmed User
 
Join Date: Feb 2004
Location: If i was up your ass you'd know
Posts: 3,695
Quote:
Originally posted by yikester
Come on guys... I know how to block an IP. :-)

I'm looking for a script that watches HTTP response 401, builds a table, counts the 401s and then pulls the plug for that IP.
if the http response is 401 it didn't read the script silly. so how exactly did you want to the script to run? locally parcing your log files? hows the script gonna block those ips when it never gets a chance to respond to the http request to begin with? do you have a firewall that reads configuration constantly from a text file or SQL database?
__________________


For PHP/MySQL scripts ICQ 161480555 or email [email protected]
Doc911 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 09:13 PM   #8
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
www.proxypass.com
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 09:15 PM   #9
yikester
Registered User
 
Join Date: Nov 2002
Posts: 49
I've found a solution using a custom error handler recording the failed attempts and telling the firewall what to block. But it needs to be developed furtther.

If anybody knows a solution ready to use, please drop a line.
yikester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-13-2004, 09:24 PM   #10
yikester
Registered User
 
Join Date: Nov 2002
Posts: 49
Quote:
Originally posted by Lane
www.proxypass.com
That was a good one. Thanks!
yikester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.