referrererrerrerer
- Started
- Last post
- 11 Responses
- PromotionalUseOnly
Is it possible to let people access a file on a server only if they have come from a certain URL... am using php
- Jimbo820
flobble flabble bibble babble- thats all I hear
- PSYKHO0
.htaccess should do it, can't remember it by heart.
- PromotionalUseOnly0
jfo
- klipklap0
this should do it:
if website from == "google.com" < makego == "mysite.com/fromgoogle"
yeah, use that
- Mojo0
Does it annoy you that every single post of yours is intruded by your own stupidly long, untruncated name?
- +1 it bugs me tooklipklap
- +1 LOLsoynutz7
- i like how it ignores plebs like yourselfPromotionalUseOnly
- heavyt0
even easier than htaccess:
if ($_SERVER['HTTP_REFERER'] != 'somedomain.name'){
header("Location: getlost.php");
die();
}
- e-pill0
so this thread is not about weed?? reefer???
- PromotionalUseOnly0
hmm... but i don't want to have to go via php actually (sorry about that) i.e how do people stop hotlinking?
- heavyt0
you can use JS:
if(document.referrer != 'somedomain.name'){
window.location = 'getlost.html';
}
- PromotionalUseOnly0
how does that help if someone is linking to an image? don't worry sorted it