Why is this regex used with SetEnvIfNoCase producing an error?

Discussion in 'Apache' started by carlos123, Nov 21, 2009.

  1. #1
    Within my .htaccess file I have this...

    
    SetEnvIfNoCase Referer "*xx*" unwanted=1
    
    Code (markup):
    I am trying to prevent links from pornographic sites that might have "xx" in the Referrer value.

    But the above returns an Apache error...that is definitely the line returning the error.

    
    SetEnvIfNoCase regex could not be compiled.
    
    Code (markup):
    I can't for the life of me figure out what is wrong with the regex "*xx*" which I assume this error is referring to.

    Any helpful advice would be greatly appreciated on this perplexing error and how I might be able to get around it.

    Thanks.

    Carlos
     
    carlos123, Nov 21, 2009 IP