Tag: .htaccess

  • Take That, Rupert

    The majority of deadprogrammer.com traffic these days consists of myspace.com users hotlinking images. I really don’t mind hotlinking, in fact, I encourage it, but the thing is myspacecadets never ever link back to me. It’s common courtesy – if you use somebody’s image as well as server resources, provide a link back.

    Well, now I use this little snippet of code that in my .htaccess file to replace any hotlinked image from myspace.com with a tasteful ad for deadprogrammer.com:

    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^http://(.*\.)?myspace\.com/ [NC]
    RewriteRule \.(jpe?g|gif|png)$ photos/hotlinked.jpg [L]

    All of a sudden, hundreds of popular myspacers are promoting me:

    Classy. If you have a better idea for a replacement image, let me know.

  • A Friendly Message From Central Services

    I broke some of my rss feeds with an unfortunate .htaccess file edit. Everything is fixed now, but you might want to check if you missed some of my posts, especially if you are a Livejournal subscriber.

    “This is your receipt, and this is my receipt for your receipt”.