![]() |
.htaccess setenvif php Question
Is there anyway I can use the setenvif variable in .htaccess to identify a site-sucker bot and use php to address it?
like setenvif *rule* something=Sucker <?php $id=StripURL($HTTP_SERVER_VARS["SOMETHING"]); ?> |
I am bumping this thread because I want to know the answer to the same question.
Anyone? |
never done that before post a question on phpbuilder.com should have the answer in 5 to 10 mins
|
i know its not fool proof but you could always use $_SERVER['HTTP_USER_AGENT'] to check if its a well known bot.
|
I guess my MODIFIED, more clear question should be, and it is more apache than php:
Is there any way I can use rules in an htaccess file to set an environment variable that I can read via php with $HTTP_SERVER_VARS ? I.e. set the AUTH_USER to something I define like "GFY" and get it in php via $HTTP_SERVER_VARS["AUTH_USER"] |
Solved.
SetEnv |
All times are GMT -7. The time now is 03:36 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123