mmarif4u Posted April 12, 2007 Share Posted April 12, 2007 Hi guys: I have 4 pages, i want to protect them from illegal use. Now take an example a user go to 3rd page and thier he copied the url from address bar and save it any where. Next time when he put the url in the adress he will get the required page... But i dont want this, If he paste the url and click go he see a page where he is redirected to 1st page or some error thier on the page that u did not fill the from in the previous pages please click here to start again... I know that this is done by sessions... I have a little bit idea of sessions i apply also but no luck. My pages are ready and working. But only this problem, How can i do this to protect my pages from illegal use.(specailly when they want to insert or update a record in db). Any help will be apprecieted. Thanks Link to comment https://forums.phpfreaks.com/topic/46688-protection-of-pages/ Share on other sites More sharing options...
mike1313 Posted April 12, 2007 Share Posted April 12, 2007 If in fact, you don't want to use sessions, try if (!$_SERVER['HTTP_REFERER']){ print "This page can't be accessed directly. Please click back to start over."; } else { DO THIS } Link to comment https://forums.phpfreaks.com/topic/46688-protection-of-pages/#findComment-227471 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.