Prevent Curl Wget for Web server

Prevent Curl Wget for Web server

Nginx

   
    ##  
    # Block User Agent (Jorgee Vulnerability scan)
    ##  
    
    if ($http_user_agent ~* (Jorgee|curl|wget) ){
         return 403;
    }   

Apache


 RewriteEngine On
 RewriteCond %{HTTP_USER_AGENT} ^$                                                              [OR]
 RewriteCond %{HTTP_USER_AGENT} ^.*(<|>|'|%0A|%0D|%27|%3C|%3E|%00).*                            [NC,OR]
 RewriteCond %{HTTP_USER_AGENT} ^.*(HTTrack|clshttp|archiver|loader|email|nikto|miner|python).* [NC,OR]
 RewriteCond %{HTTP_USER_AGENT} ^.*(winhttp|libwww\-perl|curl|wget|harvest|scan|grab|extract).* [NC]
 RewriteRule ^(.*)$ - [F,L]


Back To Top