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:
- mkdir a directory under your ~/public_html
- 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>
- put the HTML documents that you want to protect under this directory
- 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.