block users from retrieving certian urls?
3 posts
• Page 1 of 1
block users from retrieving certian urls?
Hi
i need some help/ideas figuring out how to do something.
i have a file somefile.php that uses ajax to include files ajaxinclude.php when the user clicks on certian links.
what i am tyring to do is to not allow those pages to be accessed outside of the somefile.php. meaning i dont want users to beable to directly load ajaxinclude.php, only when the request is coming from somefile.php.
SOOO
i would like to reroute these users to another page if they do.
is there a way to have isapi handle this. if so - how?
thanks in advance.
sam
i need some help/ideas figuring out how to do something.
i have a file somefile.php that uses ajax to include files ajaxinclude.php when the user clicks on certian links.
what i am tyring to do is to not allow those pages to be accessed outside of the somefile.php. meaning i dont want users to beable to directly load ajaxinclude.php, only when the request is coming from somefile.php.
SOOO
i would like to reroute these users to another page if they do.
is there a way to have isapi handle this. if so - how?
thanks in advance.
sam
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: block users from retrieving certian urls?
Hello,
The idea is probably to use HTTP_Referer variable in a condition and see if it matches your somepage.php, if not - redirect.
Regards
The idea is probably to use HTTP_Referer variable in a condition and see if it matches your somepage.php, if not - redirect.
Regards
Re: block users from retrieving certian urls?
you know that sounds like a much simpler solution than what i was thinking. thank you!
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 14 guests