View Full Version : Stop URL Editing

12-25-2007, 04:44 PM
This is my first post, so hello. :
I was hoping someone had an idea on how to do this, because even though I'm a decent with PHP, I have no idea how it's done. I want to make it so people can enter in my website URL(like this : www.mysite.com/) , but, I want to make it so that if they enter in something after the slash(like this: mysite.com/blah.php) they get an error. Anyone know how this can be done? I want them to access blah.php, but only by a link on my website, not by entering it in themselves.

Thanks for any help I receive. :D

12-25-2007, 05:17 PM
You can use HTTP_REFERER in this case.