Social Bookmarking

del.icio.us Digg Furl Blinklist Reddit Technorati Yahoo My Web Newsvine Socializer Ma.gnolia Stumble Upon Google Bookmarks RawSugar Squidoo Spurl BlinkBits Netvouz Rojo Blogmarks Co.mments Scuttle Feed Me Links Yigg Mr.Wong

Sandy Dunlop

A 27 year old software consultant living in Glasgow.

IRC: jaavaaguru on irc.freenode.net

Email: sandy@sorn.net

Adverts

Current Projects

Find Sandy online

Miscellanea

tagsociety

Leeching

A couple of people have web pages where the background image is a large JPEG being leeched from sorn.net's server. I've changed some things so that anyone who views one of the leeching sites sees a photo of Celine Dion instead of the original image. Since it's a "hardcore" rock band page, I'm sure they'll be pleased. They might even copy the image to their own server instead of using my bandwidth! For anyone viewing the image directly, it appears just as it used to. I've also set it up so that if the browser's IP address is that which I believe to belong to the owner of the web page (or maybe his/her ISP), then the original web page is returned. I wonder how long it'll be before they find out.

To accomplish this, I added this .htaccess file to the directory containing the image:
<Files blood.jpg>
AddType application/x-httpd-php .jpg
</Files>

This causes PHP to interpret this file before sending it to the client browser. blood.jpg is actually a PHP script now, and you can find it's source here: http://www.sorn.net/misc/script.text.

I've been told there's a discussion about this at Overclockers.co.uk's Forums.
tags: web
No comments

Post a comment

What is fifteen added to one ?:
Name: URL:
Comment: