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.
race.gif
See code at:
https://codepen.io/johnsokol/pen/PoZbXmj
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.
#!/usr/bin/perl
#
#
# 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;
exit(0);
#
No comments:
Post a Comment