httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vik Rubenfeld <v...@mindspring.com>
Subject Re: [users@httpd] Htaccess code to Deny Referrers Spam?
Date Wed, 26 Jan 2005 09:22:12 GMT
Hi Joshua,

Thanks for the feedback.

> A little more debugging on your part would be helful.
> Have you checked to see if the problem is the dash?

Yes, I did check the dashes. It's the same dash character.

> You've got a bunch of superfluous stuff there.  You could probably use just
> SetEnvIfNoCase Referer "poker-" BadReferer

Isn't it necessary to use some sort of wildcard match to catch characters to
the right and left of the string, "poker-"?

If that is necessary, is the following the correct syntax?

     SetEnvIfNoCase Referer ".*(poker-).*" BadReferer


-Vik




On 1/25/05 9:46 AM, "Joshua Slive" <jslive@gmail.com> wrote:

> On Mon, 24 Jan 2005 20:35:47 -0800, Vik Rubenfeld <vikr@mindspring.com> wrote:
>> I've got htaccess code to get rid of referrer spam. Here's an example:
>> 
>> SetEnvIfNoCase Referer ".*(stormfront).*" BadReferer
>> order deny,allow
>> deny from env=BadReferer
>> 
>> It works correctly in most cases. However, I have the following line:
>> 
>>     SetEnvIfNoCase Referer ".*(poker-).*" BadReferer
>> 
>> ...and I find that that line is not catching referrers such as the
>> following:
>> 
>>     free-texas-hold-em-poker-games.fidelityfunding.net
>>     online-poker-rooms.fidelityfunding.net
>>     texas-holdem-poker-game.fidelityfunding.net
>> 
>> How do I correct that line to get it to catch those referrers? Thanks in
>> advance for any info.
> 
> A little more debugging on your part would be helful.
> Have you checked to see if the problem is the dash?
> 
> You've got a bunch of superfluous stuff there.  You could probably use just
> SetEnvIfNoCase Referer "poker-" BadReferer
> 
> Joshua.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message