|
|
|
|
|
|
|
![]() |
#1 |
Banned
Join Date: Oct 2006
Posts: 13
|
Jim,
I think the coincidence is a bit too big! plus you modifyed that .htaccess so badly that you even broke it Code:
RewriteCond %{HTTP_REFERER} !^$ if they have ZangoToolbar. Why would you want that ? Code:
RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*yourdomain\.com(:[0-9]+)?(/.*)?$ [NC] "the url might be of the form yourdomain.com:135" or any other group of digits Is that a new tld extension ? Using stuff like (.*@)?([a-z0-9-]+\.)* is overkill when you can simply use (.*)? which will match anything. |
![]() |
![]() |
![]() |
#2 | |
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 |
|
![]() |
![]() |
![]() |
#3 |
Kodak Ghosts Run Amok
Join Date: Apr 2003
Location: Hobbs End
Posts: 1,718
|
I would like to follow up on what we chatted about last night in the channel about "anti zanga approved sponsors" we would be happy to make the banners that were mentioned. hit me up on icq or email me
we at lotzadollars are committed to supporting our honest affiliates and won't put up with these kinds of scams. we also appreciate all the positive feedback lotza received for takng this stand ![]() Last edited by spookyx; 2006-10-25 at 11:07 AM.. |
![]() |
![]() |
![]() |
|
|