RE: Are your mod_rewrite rules doing what you expect?

From: Riddoch, John ESITI-ISEP-3 (John.E.Riddochat_private)
Date: Mon Aug 13 2001 - 08:00:17 PDT

  • Next message: Hannibal Lector: "SIX-webboard 2.01 "show files" vulnerability"

    > This can be fixed by modifying your ReWriteRule directives to 
    > reflect this 
    > behavior:
    > 
    > RewriteCond %{HTTP_REFERER} !^http://www\.yoursite\.com$
    > RewriteRule ^/*images/.* - [G]
    > 
    > Which will match multiple occurences of "/" in the path of 
    > the HTTP request.
    
    It will for the case of http://www.yoursite.com//images/file.gif but not for
    http://www.yoursite.com/images//file.gif (which would have the same result).
    Based on your syntax above, the second line should be:
    
    RewriteRule ^/*images/*.* - [G]
    



    This archive was generated by hypermail 2b30 : Mon Aug 13 2001 - 08:03:52 PDT