Block scrapers from dynamic ips - htaccess

Discussion in 'Apache' started by iggori, Feb 17, 2010.

  1. #1
    Can somebody explain to me how to forward ip range from all urls that contain "/download/" and forward to site index.php

    I try with something like this but not work:

    # Blacked only to /download/...
    #-----------------------------------------------------
    RewriteCond %{REMOTE_ADDR} 69.224.0.0/12 	[OR]
    RewriteCond %{REMOTE_ADDR} 77.0.0.0/8 	[OR]
    RewriteCond %{REMOTE_ADDR} 216.132.0.0/16[OR]
    RewriteCond %{REMOTE_ADDR} 216.133.0.0/17[OR]
    RewriteCond %{REMOTE_ADDR} 216.133.128.0/18[OR]
    RewriteCond %{REMOTE_ADDR} 216.133.192.0/19
    
    RewriteCond %{REQUEST_URI} /download/(.*).html$
    RewriteRule ^.* index.php
    #-----------------------------------------------------
    Code (markup):
    Thanks
     
    iggori, Feb 17, 2010 IP
  2. iggori

    iggori Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Nobody? No help?
     
    iggori, Feb 18, 2010 IP