kickassamd Posted May 13, 2006 Share Posted May 13, 2006 I cant seem to get HTTP_REFERER to work.... Its always returning nothing.....even though im coming from somewhere [img src=\"style_emoticons/[#EMO_DIR#]/huh.gif\" style=\"vertical-align:middle\" emoid=\":huh:\" border=\"0\" alt=\"huh.gif\" /] Windows hosting aswell if that makes a diffrence. Any idears? Quote Link to comment Share on other sites More sharing options...
toplay Posted May 14, 2006 Share Posted May 14, 2006 This gets sent by the browser (if even a browser is used) and so it's not 100% reliable. Some browsers might not send it but most do. It also can be faked/altered by users/hackers.Sometimes when you're testing locally instead of the Internet, it doesn't get passed/set.But make sure you're using $_SERVER['HTTP_REFERER'] and not $HTTP_REFERER. See:[a href=\"http://us2.php.net/manual/en/reserved.variables.php#reserved.variables.server\" target=\"_blank\"]http://us2.php.net/manual/en/reserved.vari...ariables.server[/a] Quote Link to comment Share on other sites More sharing options...
kickassamd Posted May 14, 2006 Author Share Posted May 14, 2006 [!--quoteo(post=373613:date=May 13 2006, 07:20 PM:name=toplay)--][div class=\'quotetop\']QUOTE(toplay @ May 13 2006, 07:20 PM) [snapback]373613[/snapback][/div][div class=\'quotemain\'][!--quotec--]This gets sent by the browser (if even a browser is used) and so it's not 100% reliable. Some browsers might not send it but most do. It also can be faked/altered by smart users/hackers.Sometimes when you're testing locally instead of the Internet, it doesn't get passed/set.But make sure you're using $_SERVER['HTTP_REFERER'] and not $HTTP_REFERER. See:[a href=\"http://us2.php.net/manual/en/reserved.variables.php#reserved.variables.server\" target=\"_blank\"]http://us2.php.net/manual/en/reserved.vari...ariables.server[/a][/quote]I am using the $_SERVER['HTTP_REFERER'] variable, And used IE \ Maxthon \ FF, none seem to work.....Im just trying to create a simple hotlink protection script. Sense Im on windows i cant use .htaccess. Quote Link to comment Share on other sites More sharing options...
kickassamd Posted May 14, 2006 Author Share Posted May 14, 2006 Got it working :) Quote Link to comment Share on other sites More sharing options...
448191 Posted May 14, 2006 Share Posted May 14, 2006 [a href=\"http://refspoof.mozdev.org/\" target=\"_blank\"]Here's[/a] a mozilla plugin too spoof your referrer.I haven't tried it, but I reckon I don't have to be a smart hacker to use it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.