Child pages
  • Limiting Access to Web Pages

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you just want to limit access to hosts in a certain domain (eg. indiana.edu) or to a specific list of hosts that can be some very simply by just creating a file named .htaccess with deny and allow lines like this:

Code Block
title.htaccess
denyrequire from all allowdenied
fromrequire host iu.indiana.edu
allowrequire fromhost indiana.iu.edu
allowrequire fromip some1.host2.com3.4
allowrequire fromhost 129.79.1.1some.host

In this example, all hosts in the iu.edu and indiana.edu domains will have access along with the specific host and IP address listed.

...