Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Deny Access to a website


lucy24 - 8:48 pm on Dec 21, 2012 (gmt 0)


SetEnvIfNoCase Referer "^http://www\.\example\.com/" badguy

Is that a typo or do you really have a \e in there? In some RegEx dialects, this is a specific character, so be careful. In mod_setenvif I like to strip things down to a minimum; the complicated stuff goes in mod_rewrite. In the case of a referer, all you need is

SetEnvIfNoCase Referer example badguy

Otherwise you'd be letting in anyone who gave the referer as, for example,
https://example.com


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