I
I.N. Galidakis
I have many readers who save locally my web-pages for ease of reading.
When a page is loaded off my server, on my stats I get:
http://ioannis.virtualcomposer2000.com/xxx/yyy.html, etc.
When the page is loaded locally, on my stats I get:
file:///C:/Documents%20and%20Settings/CJU/%uBC14%uD0D5%20%uD654%uBA74/xxx.htm,
etc
or some other such nonsense, describing the path where the user saved the page.
Now, being a wholesomely evil person ;o), I intend to make it difficult for my
readers to save locally, hence I want to discuss the possibility of a little
JavaScript to keep readers from doing that.
My Stats code is a simple JavaScript. Among the various output values of this
code is the path name as above, hence it should be easy to write a simple
JavaScript that returns only the path name.
I know that JavaScripts which crash browsers exist, for example, by going
through a loop which opens a virtual infinity of windows. To conclude, and in
pseudocode:
Return (pathname)
if pathname from server, then do nothing
else keep opening windows till Jesus appears again on Earth.
It looks really simple to me, so should be doable, but I am not a JavaScript
programmer. Of course the reader can always cut the JS code out and read it
still, but most readers are not code gurus.
If anyone knows how to do this, I'd appreciate it and in return, I'll put on a
good word for you when you burn in hell for helping me out ;o)
Cheerio,
When a page is loaded off my server, on my stats I get:
http://ioannis.virtualcomposer2000.com/xxx/yyy.html, etc.
When the page is loaded locally, on my stats I get:
file:///C:/Documents%20and%20Settings/CJU/%uBC14%uD0D5%20%uD654%uBA74/xxx.htm,
etc
or some other such nonsense, describing the path where the user saved the page.
Now, being a wholesomely evil person ;o), I intend to make it difficult for my
readers to save locally, hence I want to discuss the possibility of a little
JavaScript to keep readers from doing that.
My Stats code is a simple JavaScript. Among the various output values of this
code is the path name as above, hence it should be easy to write a simple
JavaScript that returns only the path name.
I know that JavaScripts which crash browsers exist, for example, by going
through a loop which opens a virtual infinity of windows. To conclude, and in
pseudocode:
Return (pathname)
if pathname from server, then do nothing
else keep opening windows till Jesus appears again on Earth.
It looks really simple to me, so should be doable, but I am not a JavaScript
programmer. Of course the reader can always cut the JS code out and read it
still, but most readers are not code gurus.
If anyone knows how to do this, I'd appreciate it and in return, I'll put on a
good word for you when you burn in hell for helping me out ;o)
Cheerio,