Bypassing HTACCESS

Discussion in 'Apache' started by DevMad, Jun 12, 2011.

  1. #1
    Hi all,

    I have recently blocked the domain range 41.0.0.0/8 using my .htaccess file, I confirmed using a proxy server that I cannot reach my main page with an IP in this range, problem is someone else can and is spamming my website.

    I am not experienced with using the htacccess file and I may have the sytax incorrect. Does any experienced people have any input on this? Have I written it correctly?

    
    .HTACCESS Rule
    <IfModule mod_php5.c>
    # mod_suPHP is active - php.ini overrides must be within these tags or in your local php.ini
    
    </IfModule>
    
    <Files 403.shtml>
    order allow,deny
    <Limit GET HEAD POST>
    order allow,deny
    
    allow from all
    </Limit>
    allow from all
    </Files>
    
    
    deny from 41.0.0.0/8
    
    
    Code (markup):
    
    Event Log
    41.214.110.138 - - [11/Jun/2011:23:24:57 -0700] "GET /inc/css/_homepage.css HTTP/1.1" 200 6856 "http://www.mysite.com/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8"
    Code (markup):
     
    DevMad, Jun 12, 2011 IP