{"id":573,"date":"2005-02-09T00:29:04","date_gmt":"2005-02-08T22:29:04","guid":{"rendered":"http:\/\/10.0.0.2\/wordpress\/?p=573"},"modified":"2005-02-09T00:29:04","modified_gmt":"2005-02-08T22:29:04","slug":"404_pl","status":"publish","type":"post","link":"https:\/\/www.switchbl8.nl\/blog\/2005\/02\/404_pl\/","title":{"rendered":"404.pl"},"content":{"rendered":"<p>After installing perl on the server, it seemed like a logical thing to actually do something about it, since the intended use (awstats) did not quite like the setup for some reason (it just runs for hours doing nothing).<br \/>\nSo, I started creating the 404-redirect as I mentioned <a href=\"http:\/\/www.rare-it.com\/b2e\/blogs\/switchbl8\/blog.php\/2004\/12\/03\/p318\">waaaaaay<\/a> back. It&#8217;s a simple perl-script, that looks at REQUEST_URI, REDIRECT_URL and REDIRECT_STATUS. The last one will always be 404, since I only call the script when a 404 occurs.<br \/>\nThe script actually does not redirect or do something yet, but it prints out the variables and the basic for the redirection-logic is in there. As for something with &#8220;cmd.exe&#8221; in it (which I see a lot when I look at the serverlogs) and it will state that you requested an URL with cmd.exe in it.<\/p>\n<p>Now I need to define some nice redirects. To a random anti-virus site (McAfee, Sophos, Norton, etc), to the BSA (people searching for cracks and that kind of stuff), etc.<\/p>\n<p>If you know a nice combination of a requested url (or keyword) and the appropriate redirection, please let me know.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After installing perl on the server, it seemed like a logical thing to actually do something about it, since the intended use (awstats) did not quite like the setup for some reason (it just runs for hours doing nothing). So, I started creating the 404-redirect as I mentioned waaaaaay back. It&#8217;s a simple perl-script, that <a href='https:\/\/www.switchbl8.nl\/blog\/2005\/02\/404_pl\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36,27,31],"tags":[],"class_list":["post-573","post","type-post","status-publish","format-standard","hentry","category-apache","category-software","category-websites","category-36-id","category-27-id","category-31-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/comments?post=573"}],"version-history":[{"count":0,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/573\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/media?parent=573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/categories?post=573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/tags?post=573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}