?
Solved

Rewrite rules continue processing

Posted on 2005-04-02
2
Medium Priority
?
229 Views
Last Modified: 2010-05-18

Hello,

I have the following rewrite rules for a given virtualhost. I do want that when a image is requested with a referer from a not
allowed site, the apache engine stops processing any further reqrite rules [L], however it appears that apache keeps processing
the rules from the 3rd to lst when the referer is from a not allowed domain.

Can someone show me the lingth on why this is happening?

Thanks in advance.



--- httpd.conf sample --------------------------------------------------------------------------------------------------------------

    RewriteEngine On

    # block user agents
    RewriteCond %{HTTP_USER_AGENT} ^.*MSFrontpage.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Frontpage.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Backweb.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Bandit.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Ants.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Buddy.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*zip.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Crawler.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Wget.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Grabber.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Sucker.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Downloader.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Siphon.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Collector.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Snagger.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Widow.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Snake.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Vacuum.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Pump.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Teleport.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Reaper.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Mag-Net.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Memo.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*pcBrowser.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*leech.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Stripper.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Offline.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Copier.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Mirror.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*mister.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*HMView.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*HTTrack.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*JOC.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*likse.*$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Recorder.*$
    RewriteRule ^/.+ - [F]

   # block viruses and script kiddies
    RewriteCond %{THE_REQUEST} default.ida
    RewriteRule ^.*$ - [G,L]

    RewriteCond %{THE_REQUEST} cmd.exe
    RewriteRule ^.*$ - [G,L]

    RewriteCond %{THE_REQUEST} root.exe
    RewriteRule ^.*$ - [G,L]

    RewriteCond %{THE_REQUEST} /scripts/
    RewriteRule ^.*$ - [G,L]

    RewriteCond %{THE_REQUEST} /cgi-bin/src/redirect.php
    RewriteRule ^.*$ - [G,L]

    RewriteCond %{THE_REQUEST} /cgi-bin/biztalkhttpreceive.dll
    RewriteRule ^.*$ - [G,L]

    RewriteCond %{THE_REQUEST} /cgi-bin/mailbox.php3
    RewriteRule ^.*$ - [G,L]

    RewriteCond %{THE_REQUEST} _vti_
    RewriteRule ^.*$ - [G,L]
   
    RewriteCond %{THE_REQUEST} shell.exe
    RewriteRule ^.*$ - [G,L]


<VirtualHost 123.123.123.123>
   ServerName www.site.com
   ServerAlias site.com
   ScriptAlias /cgi-bin/ /www/site.com/cgi-bin/
   DocumentRoot /www/site.com/
   
   RewriteEngine On
   RewriteOptions inherit
   
   RewriteLog /usr/local/apache/logs/site.com_rewrite_log
   RewriteLogLevel 9
   RewriteCond %{HTTP_REFERER} !^http://(www\.)?site\.com/ [NC]
   RewriteCond %{HTTP_REFERER} !^http://(www\.)?goodsite\.com/ [NC]
   RewriteCond %{HTTP_REFERER} !^$
   RewriteRule \.(jpe?g|gif|bmp|png|JPEG?G|GIF|BMP|PNG)$ [L]
</VirtualHost>

---------------------------------------------------------------------------------------------------------------------------------------




--- Rewrite log for a request from not allowed domain ------------------------------------------------------------------------

111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (2) init rewrite engine with requested uri /image.gif
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (3) applying pattern '\.(jpe?g|gif|bmp|png|JPEG?G|GIF|BMP|PNG)$' to uri '/image.gif'
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (4) RewriteCond: input='http://badsite.com/hotlink.html' pattern='!^http://(www\.)?site\.com/' => matched
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (4) RewriteCond: input='http://badsite.com/hotlink.html' pattern='!^$' => matched
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (2) rewrite /image.gif -> [L]
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (3) applying pattern '^/.+' to uri '[L]'
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (3) applying pattern '^.*$' to uri '[L]'
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='default.ida' => not-matched
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (3) applying pattern '^.*$' to uri '[L]'
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='cmd.exe' => not-matched
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (3) applying pattern '^.*$' to uri '[L]'
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='root.exe' => not-matched
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (3) applying pattern '^.*$' to uri '[L]'
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='/scripts/' => not-matched
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (3) applying pattern '^.*$' to uri '[L]'
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='/cgi-bin/src/redirect.php' => not-matched
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (3) applying pattern '^.*$' to uri '[L]'
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='/cgi-bin/biztalkhttpreceive.dll' => not-matched
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (3) applying pattern '^.*$' to uri '[L]'
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='/cgi-bin/mailbox.php3' => not-matched
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (3) applying pattern '^.*$' to uri '[L]'
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='_vti_' => not-matched
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (3) applying pattern '^.*$' to uri '[L]'
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='shell.exe' => not-matched
111.222.111.222 - - [02/Apr/2005:13:46:55 -0500] [www.site.com/sid#81f247c][rid#8271034/initial] (2) local path result: [L]


---------------------------------------------------------------------------------------------------------------------------------------




--- Rewrite log for a request from allowed domain -----------------------------------------------------------------------------


111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (2) init rewrite engine with requested uri /image.gif
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (3) applying pattern '\.(jpe?g|gif|bmp|png|JPEG?G|GIF|BMP|PNG)$' to uri '/image.gif'
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='http://goodsite.com/hotlink.html' pattern='!^http://(www\.)?site\.com/' => matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='http://goodsite.com/hotlink.html' pattern='!^http://(www\.)?goodsite\.com/' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (3) applying pattern '^/.+' to uri '/image.gif'
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*MSFrontpage.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Frontpage.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Backweb.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Bandit.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Ants.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Buddy.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*zip.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Crawler.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Wget.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Grabber.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Sucker.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Downloader.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Siphon.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Collector.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Snagger.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Widow.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Snake.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Vacuum.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Pump.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Teleport.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Reaper.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Mag-Net.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Memo.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*pcBrowser.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*leech.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Stripper.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Offline.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Copier.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Mirror.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*mister.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*HMView.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*HTTrack.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*JOC.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*likse.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' pattern='^.*Recorder.*$' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (3) applying pattern '^.*$' to uri '/image.gif'
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='default.ida' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (3) applying pattern '^.*$' to uri '/image.gif'
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='cmd.exe' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (3) applying pattern '^.*$' to uri '/image.gif'
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='root.exe' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (3) applying pattern '^.*$' to uri '/image.gif'
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='/scripts/' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (3) applying pattern '^.*$' to uri '/image.gif'
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='/cgi-bin/src/redirect.php' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (3) applying pattern '^.*$' to uri '/image.gif'
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='/cgi-bin/biztalkhttpreceive.dll' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (3) applying pattern '^.*$' to uri '/image.gif'
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='/cgi-bin/mailbox.php3' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (3) applying pattern '^.*$' to uri '/image.gif'
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='_vti_' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (3) applying pattern '^.*$' to uri '/image.gif'
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (4) RewriteCond: input='GET /image.gif HTTP/1.1' pattern='shell.exe' => not-matched
111.222.111.222 - - [02/Apr/2005:13:51:36 -0500] [www.site.com/sid#81f247c][rid#8272034/initial] (1) pass through /image.gif


---------------------------------------------------------------------------------------------------------------------------------------
0
Comment
Question by:demienx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
caterham_www earned 2000 total points
ID: 13691243
You have a syntax error here:

RewriteRule \.(jpe?g|gif|bmp|png|JPEG?G|GIF|BMP|PNG)$ [L]
The substitution is missing, it should be
RewriteRule \.(jpe?g|gif|bmp|png|JPEG?G|GIF|BMP|PNG)$ - [L]

BTW: the L-Flag does not forbid a request
0
 

Author Comment

by:demienx
ID: 13694047

Thanks!,

I just replaced with:

RewriteRule \.(jpe?g|gif|bmp|png|JPEG?G|GIF|BMP|PNG)$ - [G,L]

and works the best way :)
 
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question