{"id":453,"date":"2018-06-18T08:26:10","date_gmt":"2018-06-18T08:26:10","guid":{"rendered":"http:\/\/info.juliusgoh.life\/?p=453"},"modified":"2018-06-18T08:27:20","modified_gmt":"2018-06-18T08:27:20","slug":"prevent-curl-wget-for-web-server","status":"publish","type":"post","link":"https:\/\/info.juliusgoh.life\/?p=453","title":{"rendered":"Prevent Curl Wget for Web server"},"content":{"rendered":"<p>Nginx<\/p>\n<pre>   \r\n    ##  \r\n    # Block User Agent (Jorgee Vulnerability scan)\r\n    ##  \r\n    \r\n    if ($http_user_agent ~* (Jorgee|curl|wget) ){\r\n         return 403;\r\n    }   \r\n<\/pre>\n<p>Apache<\/p>\n<pre>\r\n<IfModule mod_rewrite.c>\r\n RewriteEngine On\r\n RewriteCond %{HTTP_USER_AGENT} ^$                                                              [OR]\r\n RewriteCond %{HTTP_USER_AGENT} ^.*(<|>|'|%0A|%0D|%27|%3C|%3E|%00).*                            [NC,OR]\r\n RewriteCond %{HTTP_USER_AGENT} ^.*(HTTrack|clshttp|archiver|loader|email|nikto|miner|python).* [NC,OR]\r\n RewriteCond %{HTTP_USER_AGENT} ^.*(winhttp|libwww\\-perl|curl|wget|harvest|scan|grab|extract).* [NC]\r\n RewriteRule ^(.*)$ - [F,L]\r\n<\/IfModule>\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>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} ^.*(|&#8217;|%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 ^(.*)$ &#8211; [F,L]<\/p>\n","protected":false},"author":1,"featured_media":456,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,2,20],"tags":[],"_links":{"self":[{"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=\/wp\/v2\/posts\/453"}],"collection":[{"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=453"}],"version-history":[{"count":2,"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=\/wp\/v2\/posts\/453\/revisions"}],"predecessor-version":[{"id":455,"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=\/wp\/v2\/posts\/453\/revisions\/455"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=\/wp\/v2\/media\/456"}],"wp:attachment":[{"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}