[support] Banning entire subnets

Jamie Holly hovercrafter at earthlink.net
Sat Jan 3 04:39:42 UTC 2015


Best way is right in your .htaccess file:

order allow,deny
deny from 66.249.64.0/19
allow from all

That way the troublemakers won't even bother eating up server resources 
when they hit Drupal. If this is a server you manage, than even better 
is to block them in IPTables.

Jamie Holly
http://hollyit.net

On 1/2/2015 10:26 PM, mick wrote:
> I am copping upto 50 access violations per day, 90% of them from 1 of 4 subnets and instead of banning each IP address I would like to ban the entire subnets they are comming from,
> eg 66.249.65.74 is one of many similar addresses
> instead of individually banning 66.249.64.0 thru 66.249.95.255 I wish I could enter 66.249.64.0/19 and be done with that group of trouble makers.
>
> I'm also curious about cron appearing to be run by these unauthorised users.
>
> mick



More information about the support mailing list