Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Mod Rewrite Anti-Leech (A Better Version)


jdMorgan - 3:58 am on Feb 7, 2005 (gmt 0)


Adding a star after the grouped subexpression makes it optional (it would match the previous parenthesized subexpression repeated zero or more times). This means that any referrer that begins with
"http://" and contains your domain will bypass the rule. That opens a fairly large hole in the protection.

I don't see why the original code didn't work for the referrer you posted.

"http://64.233.167.104/" matches [.*...]
"search" matches (search¦cache¦translate)
"?q=cache:lKyRJzLEOGoJ:www." matches .+
"example.com" matches example.com
and "/images/+inurl:mysite.com/images/&hl=en" is discarded and not required to match, because the pattern in unanchored.

I would recommend you try the original rule again, but make sure you replace the broken pipe "¦" characters with solid pipes before trying to use the code -- posting on this forum modifies some characters for security reasons, and "¦" is one of them (emphasis added for later browsers in this thread).

Jim


Thread source:: http://www.webmasterworld.com/apache/2783.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com