Forum Moderators: phranque
Well, a 403 gets logged too, right?It should. Some very large sites set up a firewall so that unequivocally unwanted requests are intercepted before they even reach the server, but that wouldn't apply here.
Well, a 403 gets logged too, right?
It could potentially make your .htaccess very largeIf you're careful to get the full CIDR ranges, blocking nothing less than a /20 (IPv4) except in extraordinary circumstances, it shouldn't end up that enormous.
Is there a benefit to blocking hack bots on a static website?
ErrorDocument 403 /forbidden4.php
declaring ErrorDocuments near the top of .htaccessJust to clarify: The server doesn't care where the ErrorDocument declaration is. Heck, you could shove it into the middle of a bunch of RewriteRules and nothing would change. The recommendation to put it at the top is purely for your own sanity: any simple, single-line rules go at the beginning where it is easiest to find them. (Another example is the Options directive.)