Rotsky
04-26-2006, 02:57 AM
I'm noticed that Cyveillance is snooping around a couple of my sites. I don't much care for the way this company does business so would like to block them. Any suggestions for the best methods?
I know the control panel has IP blocking, but it seems one can only enter one IP at a time, and Cyveillance has a lot of them (request: it would be a great help if one could enter a block of IPs in the format 38.0.0.0/8).
Next option is .htaccess, but is it best to just deny them - eg:
Deny from 38.0.0.0/8
or use something like
RewriteCond %{REMOTE_ADDR} ^65\.118\.41\.(19[2-9]|2[01][0-9]|22[0-3])$
RewriteRule .* - [F]
If the latter, how would you write the rule to block 38.0.0.0/8? Is this valid?
RewriteCond %{REMOTE_ADDR} ^38\.[0-2][0-9][0-9]\.[0-2][0-9][0-9]\.[0-2][0-9][0-9]$
All of this would go in the .htaccess in public_html, but I guess I'd have to repeat it in any other .htaccess files I have in other dirs, is that right?
Any thoughts welcome.
I know the control panel has IP blocking, but it seems one can only enter one IP at a time, and Cyveillance has a lot of them (request: it would be a great help if one could enter a block of IPs in the format 38.0.0.0/8).
Next option is .htaccess, but is it best to just deny them - eg:
Deny from 38.0.0.0/8
or use something like
RewriteCond %{REMOTE_ADDR} ^65\.118\.41\.(19[2-9]|2[01][0-9]|22[0-3])$
RewriteRule .* - [F]
If the latter, how would you write the rule to block 38.0.0.0/8? Is this valid?
RewriteCond %{REMOTE_ADDR} ^38\.[0-2][0-9][0-9]\.[0-2][0-9][0-9]\.[0-2][0-9][0-9]$
All of this would go in the .htaccess in public_html, but I guess I'd have to repeat it in any other .htaccess files I have in other dirs, is that right?
Any thoughts welcome.