im trying to make a script for my site that will detect that the page contents are on the page that they are supposed to be on, and redirect to a different page if they are not, simply for the purpose that my site is run on more javascript than html so that if they disable javascript they will see nothing, and the javascript that i intend on using will be added externally, with cache'ing of the page's contents off (got that part down...) and right-click disabled (yes, i take source theives seriously), and the script will be disguised to look like an important script that will be needed for another function on the page so that it fools theives and the page that they will be redirected to will have a tracker on it so that i may easily catch them and find the url of the site that is stealing source. anyways heres the code:
can anyone tell me what im doing wrong and what i can do to fix this so that it works?Code:var n="document.self.location" var good=(n=="http://pageurlhere") var bad=(n=="http://*.*.*/*/*") if (good) location="http://urlhere/frameleft4.html" else if (bad) location="http://urlhere/caughtya.htm"



Reply With Quote

Bookmarks