tester
01-13-2004, 06:15 PM
Hi Charter,
This is related to a problem that was posted in the troubleshooting section recently.
We have a website in which certain pages require authentication. This is performed using a function that is included on all protected pages. Our solution to allow the indexing of these pages was to check the HTTP_USER_AGENT from the request headers and allow the page to load using that. The problem is that when phpdig spiders the page, the user agent is always the default value of "PHP/4.2.2", no matter what we set it to be in the function phpdigTestUrl() in robotfunctions.php.
Is there a way to programmatically set User-agent to something secure so that the authentication mechanism is still dependable?
Thanks.
This is related to a problem that was posted in the troubleshooting section recently.
We have a website in which certain pages require authentication. This is performed using a function that is included on all protected pages. Our solution to allow the indexing of these pages was to check the HTTP_USER_AGENT from the request headers and allow the page to load using that. The problem is that when phpdig spiders the page, the user agent is always the default value of "PHP/4.2.2", no matter what we set it to be in the function phpdigTestUrl() in robotfunctions.php.
Is there a way to programmatically set User-agent to something secure so that the authentication mechanism is still dependable?
Thanks.