My web forwarding company (freeparking) uses URL masking which means that the address box always displays http://example.com.
Example.com is however in reality hosted at http://www.myhost/myuser/blogs.
This means that the referer information is incorrect, so that even though the site works fine when accessed directly at http://www.myhost/myuser/blogs/ ,it refuses to login when access via http://example.com.
The problem occurs when logging in – it just returns to the login page.
After spending many hours investigating this, it seems that the freeparking URL masking is done by opening all pages within a 100% frame, hence masking the URL.
I then scratched my head to see if there is a way around this problem and came up with the idea of editing the PHP code so that the referer information simply demands a referal from http://www.example.com without comparing it with the local database. This solution should still be secure as it requires a referer, so should get around the login problem.
Some investigating tells me that the code I require is $HTTP_REFERER
Can anyone tell me what PHP pages I need to change the code on?
- The topic ‘Overcoming Referer Problems With Domain Forwarding’ is closed to new replies.