|
|
|
|
|
|
![]() |
#11 | |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
Quote:
So, any similarity is just two people coming up with the same answer for the same problem. I got involved with this from a code perspective yesterday morning after seeing what Greenguy and Jim had done and came up with a solution that was a little more robust and flexible than their first version. As for allowing the empty referrer, surfers use privacy software which blocks the referrer. Using your example .htaccess, if a surfer running privacy software hits your site, they get redirected to dark5.com, but, since they don't set a referrer, how do they get to click on the link back to your site? Try it in firefox, go into about:config and change network.http.sendRefererHeader to 0 and you should get stuck in the loop. (unless that should be a 3 to not send the referrer -- their config values are a bit cryptic and I didn't test firefox to verify) It seemed to be a compromise that affected the fewest number of people. As for properly supporting RFC3986 uri constructs, call me guilty. Ray Morris from StrongBox/bettercgi developed those when we were dealing with hotlinking with a bit of input from the board to make sure that any valid url construct would be covered, but, mangled urls would not be allowed access. I merely copied known tested, valid and working url constructs that absolutely supported every condition we threw at it ages ago. Code:
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com.*$ [NC] If a surfer hits http://yourdomain.com/ -- they would be redirected for not having the www. I still support the .htaccess the way that it was written in part to conversations held directly with Greenguy and Jim and in part due to conditions I thought of that would unnecessarily complicate issues for a surfer. As you have mentioned the javascript back button doesn't make sense, and that was addressed yesterday in private conversations with Greenguy and Jim as were a number of other issues that haven't been raised yet. I'll state for the record right now that I didn't take your idea and today is the first that I even knew about it. I commend you for coming up with a solution prior to there being demand.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
|
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|