Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change 
notification.

The following page has been changed by megaspaz:
http://wiki.apache.org/httpd/Recipes/DisableImageHotLinking

The comment on the change is:
made referer regex catch https as well as http

------------------------------------------------------------------------------
  
  {{{RewriteEngine on
  RewriteCond %{HTTP_REFERER} !=""
- RewriteCond %{HTTP_REFERER} !^http://([^/]*)?example\.com/ [NC]
+ RewriteCond %{HTTP_REFERER} !^https?://([^/]*)?example\.com/ [NC]
  RewriteRule \.(jpe?g|gif|png)$ - [F,NC]
  }}}
  
@@ -20, +20 @@

  
  ==== Using SetEnvIfNoCase and FilesMatch ====
  
- {{{SetEnvIfNoCase Referer "^http://([^/]*)?example\.com/" local_ref=1
+ {{{SetEnvIfNoCase Referer "^https?://([^/]*)?example\.com/" local_ref=1
  SetEnvIf Referer ^$ local_ref=1
   
  <FilesMatch "\.(jpe?g|gif|png)$">

Reply via email to