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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-05-2004, 07:24 AM   #1
Dusen
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"]);

?>
__________________
Penis Pill Sponsor List and Reviews:
http://www.pillsponsors.com
Dusen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-05-2004, 08:13 AM   #2
Brad Gosse
Confirmed User
 
Brad Gosse's Avatar
 
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?
Brad Gosse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-05-2004, 08:29 AM   #3
fris
Too lazy to set a custom title
 
fris's Avatar
 
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
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-05-2004, 09:46 AM   #4
FiReC
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.
FiReC is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-05-2004, 11:39 AM   #5
Dusen
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"]
__________________
Penis Pill Sponsor List and Reviews:
http://www.pillsponsors.com

Last edited by Dusen; 08-05-2004 at 11:43 AM..
Dusen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-05-2004, 11:52 AM   #6
Dusen
Confirmed User
 
Join Date: Aug 2002
Location: East Coast.
Posts: 2,251
Solved.

SetEnv
__________________
Penis Pill Sponsor List and Reviews:
http://www.pillsponsors.com
Dusen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.