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 12-04-2002, 04:28 PM   #1
Gman.357
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".

Gman.357 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2002, 04:37 PM   #2
salsbury
Confirmed User
 
Join Date: Feb 2002
Location: Seattle
Posts: 1,070
you should probably put in a condition that allows for blank referrers

^$
__________________
salsbury is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2002, 04:44 PM   #3
Gman.357
Confirmed User
 
Join Date: Oct 2002
Location: USA
Posts: 2,796
Quote:
Originally posted by salsbury
you should probably put in a condition that allows for blank referrers

^$
Ok... but wouldn't that allow some pple to access through bookmarks? This is an area I only wish to grant access from specific page locations on another domain. IE - I wouldn't want pple being able to just type it in and get there from the address bar in their browsers, or from their favorites folder.

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?
Gman.357 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2002, 05:01 PM   #4
hyper
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
__________________
hyper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2002, 05:10 PM   #5
LBBV
Confirmed User
 
LBBV's Avatar
 
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
LBBV is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2002, 05:11 PM   #6
LBBV
Confirmed User
 
LBBV's Avatar
 
Join Date: Aug 2002
Location: Atlanta
Posts: 936
Quote:
Originally posted by Gman.357


Ok... but wouldn't that allow some pple to access through bookmarks? This is an area I only wish to grant access from specific page locations on another domain. IE - I wouldn't want pple being able to just type it in and get there from the address bar in their browsers, or from their favorites folder.

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?
Not only would allowing for blank referrers allow them in via bookmarks, it would also allow type-ins and right-click/save as...
__________________
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
LBBV 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.