Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 86140 invoked from network); 26 Jan 2005 09:22:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Jan 2005 09:22:42 -0000 Received: (qmail 17623 invoked by uid 500); 26 Jan 2005 09:22:19 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 17612 invoked by uid 500); 26 Jan 2005 09:22:19 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 17594 invoked by uid 99); 26 Jan 2005 09:22:19 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from maynard.mail.mindspring.net (HELO maynard.mail.mindspring.net) (207.69.200.243) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 26 Jan 2005 01:22:17 -0800 Received: from h-68-164-151-37.lsanca54.dynamic.covad.net ([68.164.151.37]) by maynard.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1CtjNP-0005kV-00 for users@httpd.apache.org; Wed, 26 Jan 2005 04:22:15 -0500 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Wed, 26 Jan 2005 01:22:12 -0800 From: Vik Rubenfeld To: Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Checked: Checked Subject: Re: [users@httpd] Htaccess code to Deny Referrers Spam? X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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" wrote: > On Mon, 24 Jan 2005 20:35:47 -0800, Vik Rubenfeld 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 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