{"id":3230,"date":"2003-07-11T19:33:29","date_gmt":"2003-07-11T19:33:29","guid":{"rendered":"https:\/\/ezoons.com\/?p=3230"},"modified":"2003-07-11T19:33:29","modified_gmt":"2003-07-11T19:33:29","slug":"webgeeking_day","status":"publish","type":"post","link":"https:\/\/ezoons.com\/?p=3230","title":{"rendered":"Webgeeking Day"},"content":{"rendered":"<p>Today was web geeking day for me.  I had a few things on my todo list that I&#8217;ve wanted to take care of forever.  The first was to start rebuilding rules for blocking bad web spiders (as I posted about earlier).  Mark Pilgrim posted a great <a href=\"http:\/\/diveintomark.org\/archives\/2003\/02\/26\/how_to_block_spambots_ban_spybots_and_tell_unwanted_robots_to_go_to_hell.html\">article on blocking spambots and spotbots<\/a> a few months ago that is a great starting point.  So first I started building up my rules.  I&#8217;m mostly watching my logs to look for things that don&#8217;t look like they are behaving well and adding rules based on that along with using the article as a guide for things to look for.  So far so good.<\/p>\n<p>The next thing I wanted to do was block people from hotlinking to images on my machine.  More and more people have been grabbing images this way and it&#8217;s getting on my nerves.  I could care less if they copied them down to their own server and used them. I just don&#8217;t want them using me as a hosting service.  After looking around for a bit I found this article on <a href=\"http:\/\/faq.solutionscripts.com\/misc\/hot_linking.html\">using mod_rewrite to block hot linked images<\/a>. For now people who do this will get a <a href=\"https:\/\/ezoons.com\/wp-content\/uploads\/imported-legacy\/images\/finger.jpg\">very nice image<\/a>.  After I get bored with that it&#8217;ll just give them a 404 or something like that. Maybe I&#8217;ll redirect them to where they came from just to confuse things even more.<\/p>\n<p>And finally, I set up a redirect rule to point from some of my old archives to the current ones.  It isn&#8217;t perfect and doesn&#8217;t catch everything, but does catch some things.  It also tells search engines that the page has moved, so my old pages should vanish eventually.  One thing I&#8217;m curious about now though is the 301 status for pages. 301 means that the page has moved to a new location and provides that location.  Search engines should respect it when crawling (and many do I believe).  One thing I think would be cool is if browsers would notice that a bookmark has changed that way.  So you follow a bookmark to a page and it gives a 301, it should prompt you to change the bookmark or something.  I also think RSS aggregators should do something like this too.  It would be nice not to have to worry about keeping old redirect rules around forever.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today was web geeking day for me. I had a few things on my todo list that I&#8217;ve wanted to take care of forever. The first was to start rebuilding rules for blocking bad web spiders (as I posted about earlier). Mark Pilgrim posted a great article on blocking spambots and spotbots a few months [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3230","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ezoons.com\/index.php?rest_route=\/wp\/v2\/posts\/3230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ezoons.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ezoons.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ezoons.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ezoons.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3230"}],"version-history":[{"count":0,"href":"https:\/\/ezoons.com\/index.php?rest_route=\/wp\/v2\/posts\/3230\/revisions"}],"wp:attachment":[{"href":"https:\/\/ezoons.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ezoons.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ezoons.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}