![]() |
![]() |
![]() |
||||
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: Oct 2002
Location: USA
Posts: 2,796
|
.htaccess Gurus - help!
Ok. Here's a strange dilemma I'm experiencing. Got an area protected by an http_referer Rewrite cond. Works like a dream for me and apparently most surfers. However, found out that some surfers that should be gaining access to this particular area are getting redirected. Couldn't figure out why, being that 95% of them are having no problems at all. Then I pinpointed that the ones being wrongfully redirected all have one thing in common... they're Mac users. Here's a sample of the .htaccess itself...
AuthUserFile /dev/null AuthGroupFile /dev/null RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://www.whateversite.com/somedirectory/.* [NC] RewriteCond %{HTTP_REFERER} !^http://whateversite.com/somedirectory/.* [NC] RewriteCond %{HTTP_REFERER} !^http://www.whateversite2.com/somedirectory/.* [NC] RewriteCond %{HTTP_REFERER} !^http://whateversite2.com/somedirectory/.* [NC] RewriteRule /* http://www.redirectlocation.com/error.html [R,L] Why would only Mac users be getting sent to the "redirectlocation"? Presuming they are accessing through "whateversite.com" and "whateversite2.com". ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2002
Location: Seattle
Posts: 1,070
|
you should probably put in a condition that allows for blank referrers
^$
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Join Date: Oct 2002
Location: USA
Posts: 2,796
|
Quote:
The strangest thing is that so far, it only seems like Mac users are having the problem. They are accessing from the permitted locations, yet still get redirected. Is there something about the Mac browsers that htaccess rewite cond isn't recognizing? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
|
you could allow blank referrer's through htaccess
but deny from a cookie i guess |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Aug 2002
Location: Atlanta
Posts: 936
|
Have you checked your log files to make sure that these particular MAC users ARE passing a referrer? You should be able to track them by IP address as they progress from one site to another...
The fact that they are all three MAC users could just be a coincedence. ![]() You may want to find out which browser they are using also...
__________________
National Net Hosting. Handled. See our new line of inexpensive Dedicated Servers | Cabinets starting at $795 | CDN [email protected] | 888-4-NATNET | www.nationalnet.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Aug 2002
Location: Atlanta
Posts: 936
|
Quote:
__________________
National Net Hosting. Handled. See our new line of inexpensive Dedicated Servers | Cabinets starting at $795 | CDN [email protected] | 888-4-NATNET | www.nationalnet.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |