IMPORTANT: The following journal is intended for the use and viewing of approved persons only and may contain information that is confidential, privileged or unsuitable for overly sensitive persons with low self-esteem, no sense of humour or irrational religious beliefs. Any dissemination, distribution or copying of this work is not authorised (either explicitly or implicitly) and constitutes an irritating social faux pas. Unless the word ‘absquatulation’ has been used in its correct context somewhere other than in this warning, it does not have any legal or grammatical use and may be ignored. No animals were harmed in the creation of this journal and a minimum of Microsoft software was used. Those of you with an overwhelming fear of the unknown will be gratified to learn that there is no hidden message revealed by reading this warning backwards.

Year View| Summary| Highlights| Month View| Saturday 31 July 2004 (Day View)

31.07.2004Saturday 31 July – Sleeping & Hotlink Protection

I slept. I then woke up. After that, I slept again, before waking again. I then analysed the logs from my amused site to try to figure out why I’d had one and a half gigabytes of a one hundred and eighty kilobyte MP3 downloaded in the past few days, and discovered that quite a lot of my content was being directly linked from other places. This inspired me to build a complex session based anti-hotlink script, which seems to work, although no one not allowing cookies will be served any images – including search bots. It’s simple in theory – if the user doesn’t have a valid session set by my site, it won’t serve them any directly requested files. If they try to access a file and don’t have a valid session set, it’ll return a “forbidden” header and log them. I’ll see how it goes. It’s already blocked a ton of people, and now that it’s logging, I can see who is trying to link to stuff.

Add your comments

You may leave a short comment, not longer than 800 characters.

Be Amused

Printed on 100% recycled electrons
W3C CSS 2.0