Home | Sitemap | FAQ | Contact Us

How to deny users by IP?

Is there a hacker who tried to hack your site? Do you find some baleful access from a IP block? You just need add below simple codes into your .htaccess file to block the pesky visitors.

order allow,deny
deny from
deny from 203.113
allow from all

You can deny access based upon IP address or an IP block. The above blocks access to the site from, and from any sub domain under the IP block 203.113 ( to You can also allow or deny by domain name rather than IP address (allow from yahoo.com works for www.yahoo.com or groups.yahoo.com, etc.)

Back To Tips of Web Log Analysis



Home | Features | Free Trial | Buy Now! | Support
Contact us | Privacy Policy | Reseller
Copyright © 2001-2014 Nihuo Software,Inc