How to protect your web pages from non cuhk access

How to protect your web pages from non cuhk access


Dear IE Students,

If you want to protect your web pages from non cuhk access, please follow these steps:

  1. mkdir a directory under your ~/public_html
  2. In this directory create a file ".htaccess" file with the following lines
    
        <Limit GET>
        order deny,allow
        deny from all
        allow from .ie.cuhk.edu.hk 
        </Limit>
    
     
  3. put the HTML documents that you want to protect under this directory
  4. now these HTML documents can only be accessed by ie.cuhk.edu.hk hosts

As this web server is shared by all students, any highly confidential document is not suitable to be housed in this web server.