Alden Bates (abates) wrote,
Alden Bates
abates

  • Mood:

Mission: Defeat Bandwidth Bandits

The Concept: make it so people can't "remote link" to graphics on my web page.

Attempt #2

Attempt 2 involved writing a Perl script which would check the referring URL and serve the graphic if the referring URL began with http://www.tetrap.com/. Additionally, it served the graphic if the referring URL was blank, as in some browsers (e.g. Opera) it is possible to turn referrer reporting off, which would result in a pile of broken graphics all over my pages.

The script, written with the aid of frobisher was a success. I could link to the script, giving the path/name of the graphic as an argument, and it would serve the graphic. And remote linking did not work, as I had hoped.

The only drawback is that if I start using that method, I would no longer be able to test the pages locally to ensure that they work before uploading. Possible solutions to this could be (a) run a web server on my PC to allow me to test, or (b) use a fancy .htaccess redirection to ensure that the requests turn up at the right place...

I will save that for next time I feel like doing a major update, I think. :)
Subscribe

  • Hi Livejournal

    Long time, no write. I hope everyone is keeping safe from the pandemic and not going out much. I started working from home earlier this week when…

  • Wait

    What happened to my friends page? Clearly I have been away from LJ too long and they have changed things. Look, I'm a big subscriber to the idea…

  • I've been playing Fallout 3 a bunch recently

    I'm playing it as an evil character because I already did a good playthrough. Reminds me of someone...

  • Post a new comment

    Error

    Comments allowed for friends only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 3 comments