Thread: .htaccess ???
View Single Post
Old 08-31-2002, 11:44 AM  
kinkyplace
Confirmed User
 
Join Date: Mar 2002
Location: Sweden
Posts: 217
Quote:
Originally posted by SwordFish
All of the htaccess redirecting tips are great and useful, until you try to do it on a password protected directory. Which ironically is when you need it the most.

Put any/all the htaccess rewrites you want into your pass protected directory. Then watch as the surfers your are trying to redirect still get to enter a user/pass combo multiple times.

It makes it pointless if you ask me. I'd like to redirect surfers that come from pass trading sites IMMEDIATELY. So far I have found no way to do so. No matter what I try, they still get the user/pass prompt.
I have a way to do this, it's a little bit tricky though...
First you set an environment variable if the referer comes from the cheating site, then fix the redirect as usual, but in the Limit part Allow from that environment variable.
Should I add this to my little tutorial??
kinkyplace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote