Web Hosting Australia
Web Hosting
Domain Registration
Domain Registration
Design
Site Design
Web Hosting Support Promotion
Online Promotion
Access
Internet Access
Ecommerce
ECommerce

 OZNET =>  WebSite Hosting ServicesWeb Hosting Support > protect a directory

SiteMenu:
Support Pages
FTP Procedure
Email Set-up
FrontPage Extensions
Online Hosting Manual
Online Training

Web Hosting
Budget Web Hosting
Business Web Hosting
Business Site Plus
Virtual Private Server
eCommerce
Domain Forwarding
Digital Certificates

Domain Registration
Australian Domains
International Domains

Web Site Services
Design
Promotion
Search Engine Ranking
User Policy

Hosting Site Map

 Blocking certain IP addresses from seeing your website

you can block certain IP addresses from accessing your site by using a Deny directive in an .htaccess file. You can restrict this to the whole site or to some directories.

The Apache documentation explains how to do this:
http://httpd.apache.org/docs/mod/mod_access.html
http://httpd.apache.org/docs/howto/auth.html

Example, if you put the following .htaccess file in a directory, then it would operate on all directories beneath it:

Deny from 202.30.166.123
Deny From 202.30.160 
The 1st Deny directive would block the exact IP address 202.30.166.123. The 2nd Deny directive would block all IP addresses fitting the pattern 202.30.160, including 202.30.160.1, 202.30.160.2,... 202.30.160.254, etc. 

You can also add the "Deny from" into a <Directory> directive in your httpd.conf if you have a dedicated server hosted with us.

Note: if you try to use a .htaccess override on an Apache server that has these overrides disabled you will get a 403, Forbidden error.

Pay with any of these cards

OZNET®  is a Registered Trademarks of Oznet Internet Services Pty Ltd.
© 2003 All rights reserved.


Oznet Internet Services Pty Ltd.
Web Hosting Service Provider 
Sydney,  Australia
ABN 66 091 971 587
Phone: (+61 2) 9318 2188
Fax: (+61 2) 9318 0475
E-mail: