View Full Version : Direct Connections?
i am not sure where i should post this because i don't know how this is done..i think it is server sided language because it works under server side(am i right?) if i post in the wrong section please can the moderator move this thread to the right place, thanks!
here is my question:
i have been to some website and when i try right click, open in windows..i would not be allowed...either access denied or showing a msg saying "this is from a direct connection..etc..please go to here for the page you are looking for.." does anyone know how can they do that to avoid the other websites stealing links from them??
thanks for helping,
him
Spookster
04-26-2003, 07:27 PM
Server side languages cannot control features in your browser such as right clicking. That would have to be done with client-side javascript.
[nudges spookster] - read all the question [/end nudge]
Their pages would either be acting upon the $_SERVER['HTTP_REFERER'] (the last page) or using instantiated session variables - neither of which pass between browser windows.
Mostly it would be to stop other sites from direct reading their pages or images.
Spookster
04-26-2003, 09:38 PM
Originally posted by Ökii
[nudges spookster] - read all the question [/end nudge]
lol Ahhhh. My problem there was I read the question forwards........now that I read it backwards it makes more sense. :)
Originally posted by Ökii
[nudges spookster] - read all the question [/end nudge]
Their pages would either be acting upon the $_SERVER['HTTP_REFERER'] (the last page) or using instantiated session variables - neither of which pass between browser windows.
Mostly it would be to stop other sites from direct reading their pages or images.
can you explain a little bit more to me....?? is this sth call anti-leeching??
him
Originally posted by Spookster
Server side languages cannot control features in your browser such as right clicking. That would have to be done with client-side javascript.
of course i know server side language can't control sth like right click! :)
him
Originally posted by him
sth
you appear to have a bad lisp there chappy - best get that sorted right away. (location +44 = Brit - you are aware that there is no word in the English language spelled sth?)
anyway - basically if a php script had a clause in it acting upon the referer (yeah the spellings bad, all web references to referrer are spelled referer though)...
if(strpos($_SERVER['HTTP_REFERER,'mydomainname') < 0) {// request wasn't from my domain so do something nasty }
it might be if (!strpos..... or == -1 - whatever, anyway it is a really silly thing to do within a php script as not all browsers/proxies send a suitable referer - you'd always need !== "" - probably best done in .htaccess/mod_rewrite with a subclause or two.
well...i was typing too fast....:p and i use +44 as the location for every forum that i go to...it's a style...hehe..!
thanks for the reply...!
him
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.