![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
.htaccess
__________________
I like pie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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.... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Nov 2003
Posts: 8,053
|
Quote:
__________________
Programs that owe me money ---- Epassporte.com ~ $2700 | Protraffic.com ~ $2600 | XonDemand.com ~ $3000 Email: [email protected] |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Feb 2004
Location: If i was up your ass you'd know
Posts: 3,695
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Will code for food...
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
|
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Registered User
Join Date: Nov 2002
Posts: 49
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |