No, not the aging project in my portfolio. The WordPress plugin for managing .htaccess rules without cringing in horror, or wondering whether they're actually working. my first stabs at hacking .htaccess were alright, but it was basically guess > pray > test > fail > repeat. redirection doesn't have any sort of RegEx constructor (it allows regex, but there's no "click here to redirect anything inside the 'blog' folder). What it does have are logs.
I've been wondering why my site fares so well in google searches for slayer, but my post about slayer gets zero traffic. Apparently it's some danish idiot hotlinking the photo (see chart). And a couple myspace idiots, not realizing that I got the original from myspace, and hotlinking mine, rather than using the original properly.

So far, I'm realizing that the hotlink ban doesn't prevent the danish forum from from poluting my logs. I'm also having difficulty determining if the block is actually working. for everything else, though, the logs work amazingly. Especially at catching my typos.
The .htaccess rules I'm using are:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?myspace\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?ddforum\.com/ [NC]
RewriteRule \.(gif|jpe?g)$ /images/hotlink.$1 [L]
</IfModule>
Which seems to only make the hotlinked image go away, not actually replace it with my south-park-plus-web2.0-gradient image. boo.









2 Comments
I wouldn’t have a clue how to look at individual posts. I saw this plugin though and was going to use it to see if it would get the hits that come from my old dot com domain to redirect to my regular dot net domain. permanently. I could not tell if it would and itl ooked more complicated than I wanted so used another redirect plug-in. I’m not sure it works either.
I tried to play with the access file once following some directions from a post about hot to do it and my blog crashed so I leave that file alone these days.
yeah, this plugin only works with rules you’ve set inside the plugin. domain forwarding happens at the DNS level, so you can really only tell by checking the referrer, or by using something like google’s webmaster tools.
playing with .htaccess is scary, i’ve hosed all my images, and sometimes the whole site, on more than one occassion.
Post a Comment