]> granicus.if.org Git - apache/commitdiff
Rebuild transformations.
authorRich Bowen <rbowen@apache.org>
Fri, 14 Jan 2011 16:27:15 +0000 (16:27 +0000)
committerRich Bowen <rbowen@apache.org>
Fri, 14 Jan 2011 16:27:15 +0000 (16:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1059059 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_rewrite.html.en

index cd4118dd2672058d6f97f0dafaf6e4b750f61a2c..ebc9de0369f0454ccc4c37d6680e662538886019 100644 (file)
@@ -602,6 +602,17 @@ RewriteRule ^index\.html$  newsite.html
            <p>If the <em>TestString</em> has the special value <code>expr</code>, the
            <em>CondPattern</em> will be treated as a
            <a href="../expr.html">ap_expr</a>.</p>
+
+           <p>
+            In the below example, <code>-strmatch</code> is used to
+            compare the <code>REFERER</code> against the site hostname,
+            to block unwanted hotlinking.
+           </p>
+
+           <div class="example"><p><code>
+           RewriteCond expr "! %{HTTP_REFERER} -strmatch '*://%{HTTP_HOST}/*'"<br />
+           RewriteRule ^/images - [F]
+           </code></p></div>
         </li>
 
         <li>You can also set special flags for