![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Aug 2002
Location: East Coast.
Posts: 2,251
|
.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"]); ?> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jan 2002
Location: Carpal Tunnel
Posts: 2,616
|
I am bumping this thread because I want to know the answer to the same question.
Anyone? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,372
|
never done that before post a question on phpbuilder.com should have the answer in 5 to 10 mins
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Location: Land o Nubiles
Posts: 2,350
|
i know its not fool proof but you could always use $_SERVER['HTTP_USER_AGENT'] to check if its a well known bot.
__________________
www.nubilefilms.com | www.nubiles.net | www.anilos.com | tubescript.nubiles.net | icq4162727 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Aug 2002
Location: East Coast.
Posts: 2,251
|
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"] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Aug 2002
Location: East Coast.
Posts: 2,251
|
Solved.
SetEnv |
![]() |
![]() ![]() ![]() ![]() ![]() |