How to Block your website from scanners

Hi here is a simple tutorial to block your website from scanner like Acunetix, nessus, Openvas & other . Just add the below given codes to your .htaccess file .







  1. RewriteEngine On
  2. <IfModule mod_rewrite.c>
  3. RewriteCond %{HTTP_USER_AGENT} ^w3af.sourceforge.net [NC,OR]
  4. RewriteCond %{HTTP_USER_AGENT} dirbuster [NC,OR]
  5. RewriteCond %{HTTP_USER_AGENT} nikto [NC,OR]
  6. RewriteCond %{HTTP_USER_AGENT} SF [OR]
  7. RewriteCond %{HTTP_USER_AGENT} sqlmap [NC,OR]
  8. RewriteCond %{HTTP_USER_AGENT} fimap [NC,OR]
  9. RewriteCond %{HTTP_USER_AGENT} nessus [NC,OR]
  10. RewriteCond %{HTTP_USER_AGENT} whatweb [NC,OR]
  11. RewriteCond %{HTTP_USER_AGENT} Openvas [NC,OR]
  12. RewriteCond %{HTTP_USER_AGENT} jbrofuzz [NC,OR]
  13. RewriteCond %{HTTP_USER_AGENT} libwhisker [NC,OR]
  14. RewriteCond %{HTTP_USER_AGENT} webshag [NC,OR]
  15. RewriteCond %{HTTP:Acunetix-Product} ^WVS
  16. RewriteRule ^.* http://127.0.0.1/ [R=301,L]
  17. </IfModule>
     
How to Block your website from scanners How to Block your website from scanners Reviewed by Almas Malik on 14:38 Rating: 5

No comments:

Powered by Blogger.