From: Rich Bowen Date: Tue, 8 May 2012 20:14:53 +0000 (+0000) Subject: Remove extra HTML markup that was hosing the syntax highlighting. X-Git-Tag: 2.5.0-alpha~6868 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d6416ac24b4a2cde09c88136b8906ead8e7df3b;p=thirdparty%2Fapache%2Fhttpd.git Remove extra HTML markup that was hosing the syntax highlighting. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1335740 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/access.xml b/docs/manual/rewrite/access.xml index 2b6c677c5b5..207bac2c661 100644 --- a/docs/manual/rewrite/access.xml +++ b/docs/manual/rewrite/access.xml @@ -84,27 +84,27 @@ configuration. -RewriteCond %{HTTP_REFERER} !^$ +RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !www.example.com [NC] -RewriteRule \.(gif|jpg|png)$ - [F,NC] +RewriteRule \.(gif|jpg|png)$ - [F,NC]

In this second example, instead of failing the request, we display an alternate image instead.

-RewriteCond %{HTTP_REFERER} !^$ +RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !www.example.com [NC] -RewriteRule \.(gif|jpg|png)$ /images/go-away.png [R,NC] +RewriteRule \.(gif|jpg|png)$ /images/go-away.png [R,NC]

In the third example, we redirect the request to an image on some other site.

-RewriteCond %{HTTP_REFERER} !^$ +RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !www.example.com [NC] -RewriteRule \.(gif|jpg|png)$ http://other.example.com/image.gif [R,NC] +RewriteRule \.(gif|jpg|png)$ http://other.example.com/image.gif [R,NC]

Of these techniques, the last two tend to be the most effective @@ -291,7 +291,7 @@ RewriteRule ^ ${deflector:%{HTTP_REFERER}} [R,L] we just wish to redirect back to where they came from, a "-" is placed in the map:

- + ##
## deflector.map
##
@@ -299,7 +299,7 @@ RewriteRule ^ ${deflector:%{HTTP_REFERER}} [R,L] http://badguys.example.com/bad/index.html -
http://badguys.example.com/bad/index2.html -
http://badguys.example.com/bad/index3.html http://somewhere.example.com/ -
+