.htaccess to restrict people from accessing a directory

Here is an example of an .htaccess file that is used to restict access to a certain directory.


order deny,allow
allow from 109.185.71.95
deny from all


If you do not know what your IP address is go to http://www.whatismyip.com
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Using Hotlink Protection

Hotlink Protection prevents other web sites from directly linking to certain files (typically...

How To Use The IP Deny Manager

This tutorial will teach you how to use the IP Deny Manager to block access to your web site from...

How to Password Protect a Directory

This tutorial will teach how to password protect a directory. Password protecting a directory...

Website scan

Free website security scanhttp://sitecheck.sucuri.net/scanner/

Website Security Steps

Website Security An important and essential topic of discussion with any website is website...