Wednesday, June 17, 2020

Stupid web tricks

The basic idea was we could host a webpage or website at several locations, each having identical copies of the web page.   ww1.x  ww2 etc

This first page , which could even be coming from a referring web site will try to load several images off several web sites at once. 


See code at:

In order to prevent caching and also address the issue of being able to steer traffic loads some we can add a small delay before serving the image as well as adding additional HTTP tags to prevent cache and force it to load freshly each time.

#       print "HTTP/1.0 200 Okay\n";
        print "Expires: 0\n";
        print "Pragma: no-cache\n";
        print "Content-Type: image/gif\n\n";
        open (sendgif,"/cgi/race.img");
        print ();
        close sendgif;

No comments: