Restricting Access to Your Web Pages

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Restricting Access to Your Web Pages Using .htaccess

Follow these steps to create a text file:

  1. Create a text file called .htaccess in the directory that you want to protect.
  2. Type <Limit GET> as the first line of the file.
  3. Use the deny and allow directives as described above to define your restrictions.
  4. Type </Limit> as the last line of the text file.
  5. Save your .htaccess file.
  6. 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 Print This Post

Blogsphere: TechnoratiFeedsterBloglines
Bookmark: Del.icio.usSpurlFurlSimpyBlinkDigg
RSS feed for comments on this post
 |  TrackBack URI for this post



Related Post:


Leave a Reply