GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   ban an entire ip range from acessing my server.. (https://gfy.com/showthread.php?t=785846)

alex79 11-19-2007 10:55 AM

ban an entire ip range from acessing my server..
 
I want to bann all netseer.com crawlers IP's from spidering my website, from linux firewall (iptables)..
There are over 500 different IP's from where they are access my server..
few IP's are:

67.202.22.253
67.202.23.133
67.202.24.156
67.202.24.170

how can i ban this entire IP range? and what is the range that should be banned? it is 67.202.0.0-67.202.255.255 or ..?

ServerGenius 11-19-2007 11:01 AM

iptables -A INPUT -s 67.202.22.0/24 -j DROP
iptables -A INPUT -s 67.202.23.0/24 -j DROP
iptables -A INPUT -s 67.202.23.0/24 -j DROP

alex79 11-19-2007 11:09 AM

Quote:

Originally Posted by ServerGenius (Post 13392105)
iptables -A INPUT -s 67.202.22.0/24 -j DROP
iptables -A INPUT -s 67.202.23.0/24 -j DROP
iptables -A INPUT -s 67.202.23.0/24 -j DROP

67.202.22.0/24 means 67.202.22.0-67.202.22.225 ?

ServerGenius 11-19-2007 11:12 AM

Quote:

Originally Posted by alex79 (Post 13392134)
67.202.22.0/24 means 67.202.22.0-67.202.22.225 ?

Yes a /24 is 255 ip addresses or a Class C range.
/32 is 1 ip address it's a bitmask number
4 octets (4 x 8 = 32):thumbsup


All times are GMT -7. The time now is 03:40 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123