How restrict access to specific PHP page?
Posted: Tue Jun 09, 2009 11:06 pm
Is there a way to restrict access to a PHP page to only other pages from within the same domain? Is HTTP_REFERER the only way?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
What about when they restrict access to certain folders? Does that work the same way?tasairis wrote:There is no way.
HTTP_REFERER won't always be set, and when it is you have no way of knowing that it wasn't faked.
Depends what you're talking about. Either it's a different mechanism (comparing apples to oranges) or their security isn't as strong as they think/want you to believe.6tr6tr wrote:What about when they restrict access to certain folders? Does that work the same way?