Restricting Access to Your Web Pages Using .htaccess
Follow these steps to create a text file:
- Create a text file called .htaccess in the directory that you want to protect.
- Type
<Limit GET>as the first line of the file. - Use the deny and allow directives as described above to define your restrictions.
- Type
</Limit>as the last line of the text file. - Save your .htaccess file.
- Release your collection to Test and if everything is ok, to Publish.
Example:
<limit GET>
deny from all
allow from 202.100.100.100
allow from anydomain.com
</limit>
|
Print This Post
Blogsphere: TechnoratiFeedsterBloglines
Bookmark: Del.icio.usSpurlFurlSimpyBlinkDigg
RSS feed for comments on this post | TrackBack URI for this post
Related Post:
- Howto Install Zend Optimizer on cPanel/WHM
- Guide to .htaccess Tutorial and Tips
- Prevent Relaying E-mail Messages
- Email Alert on Root SSH Login
- Howto Prevent Directory Listing on cPanel
