block users from retrieving certian urls?

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 4
Joined: 26 Jan 2013, 20:32

block users from retrieving certian urls?

23 Mar 2013, 18:04

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

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: block users from retrieving certian urls?

24 Mar 2013, 20:13

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

User avatar
Posts: 4
Joined: 26 Jan 2013, 20:32

Re: block users from retrieving certian urls?

24 Mar 2013, 20:56

you know that sounds like a much simpler solution than what i was thinking. thank you!

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 14 guests