How do I block an entire range of IP addresses with the Troll Module? Something like 66.61.0.0 - 66.61.255.255.

Or do I have to do each one individually?

Comments

daniel read’s picture

I don't know how to do this with the troll module (I have never used that module), but in case it helps, you can achieve what you want using your .htaccess file. Here is an example using the range you specified:

RewriteCond %{REMOTE_ADDR} ^66\.61\.
RewriteRule ^.* - [F,L]

or a more narrow range:

RewriteCond %{REMOTE_ADDR} ^69\.57\.150\.
RewriteRule ^.* - [F,L]

There are many tutorials on the web for using rewriting in htaccess if you're not familiar with this technique.

It's a good idea to comment these in your .htaccess so you can remember later why you did it.

HTH,
Dan

IamPter’s picture

Thanks. I know how to do it via htaccess. Just wanted to handle it with the troll module.