|
Oups, VeriSexy, sorry, i just see that the board doesn't allow and hides javascript.
Let me try it again.
This goes onto the pages you want to protect :
ZZZZSKRIPT LANGUAGE="javascript"ZZZZ
// Calculate the expiration date
var expires = new Date ();
expires.setTime(expires.getTime() + 1 * 60 * 60 * 1000);
document.cookie = "id=valid; path=/" + "; expires=" + expires.toGMTString();
ZZZZ/SKRIPTZZZZ
Please replace SKRIPT INTO SCRIPT
And ZZZZ into < and >
Otherwise hit me up on icq again (sorry if i don't remember you) and i'll help with that script. Concerning the url, it's the perfect solution for me for hosting movie galleries since they have the hotlink protection implemented into their hosting facilities, so you won't need any other scripts like above.
Ciao! Michael
|