Alden Bates (abates) wrote,
Alden Bates

  • Mood:

bandwidth protection script

I have altered the script so that if the person browsing already has a cached version of the image, it tells them to use that instead.

However, the images on my music page still seem to be a bit slow to come up when I browse it. I believe that this is because in order to avoid changing any of the pages themselves, I merely redirected the music/img directory to point to the script. This would mean that every time the browser goes to load the images, it puts in the request, is redirected, *then* is told that the image hasn't changed. I can change the <img> links to link directly to the script, but then I lose the ability to test the pages on my local copy.

Unless I run a copy of apache on my own PC for testing purposes. This is probably not a good idea. I am working on writing a basic web server which will run on my local PC which will be set up so it can only be accessed from the same PC it is running on.

Cunning, eh?

Well, it will be once I finish it.

In the meantime, I should put the revised version of the protection script up on my page.

I have caffeine. can you tell?

  • 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


    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