Sebastian wrote:
ok, so i made a file manager and i need to prevent people from linking
directly to files that do not come from another part of the site.
i know i can use http_referer, but i wonder how fool proof it is, i dont
want to spit out errors to a legit user that actually came from a valid
- Original Message -
From: "Sebastian" <[EMAIL PROTECTED]>
To:
Sent: Saturday, February 26, 2005 8:31 PM
Subject: [PHP] http referer
> ok, so i made a file manager and i need to prevent people from linking
> directly to files that do not come from another part of the site.
>
> i know i
Good day,
It's a bit difficult to determine what the problem is without more
information.
If you add before this:
echo "|$efa||$HTTP_REFERER|";
What is the output?
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta,
> if ($efa != "nm" || $HTTP_REFERER !=
> "http://www.globalhealth.org/news/article.php3?id=1526";){
> do this);
> }
Not sure what the exact problem is as you haven't been all that
descriptive as to what the values are or what is happening, but
you should know that $HTTP_REFERER can't be trusted.
4 matches
Mail list logo