Forum Moderators: phranque

Message Too Old, No Replies

How to check if referer_url is same as http_host,Need help urgently

         

DeveloperMind

4:31 am on Mar 17, 2006 (gmt 0)

10+ Year Member



The problem I am facing is, how can I check if REFEREL_URL is from the same HTTP_HOST?

Like there is a page [abc.com...] having link to [abc.com...]

I want to check if the user is coming to [abc.com...] from [abc.com...] or from some external domain. In other words I want to check whether this page is referred from internal pages or external ones.

Also can you please help me learn setting a variable in htaccess and using it with a ReWriteCond.

Thanks in advance.
DeveloperMind

jdMorgan

7:28 pm on Mar 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A limited-scope solution is presented here [webmasterworld.com].

If POSIX 1003.2 is not available on your server, then you must handle referrers on a per-host basis, or use a script to enforce access controls.

Jim