How do I restrict my webpages so only users on the aber network can see them?

You do this by creating an .htaccess file:

  • Open a terminal session (How do I do that?) and log-on to the account you are working with
  • Change directory (use the command cd directoryname substituting the name of your folder) until you are in the directory you wish to protect. This should be somewhere within the public_html folder on your public filestore.
  • Open a text editor by typing pico
  • Enter the following information into pico:
    order deny,allow
    deny from all
    allow from .aber.ac.uk
  • Save the file with the name .htaccess by pressing Ctrl+O and entering the file name .htaccess
  • Set the correct permissions on this folder (How do I do that?)
Contact for this page:
Information Services, Aberystwyth University, Hugh Owen Library, Penglais, Aberystwyth, SY23 3DZ
Tel: 01970 62 2400 Email: is@aber.ac.uk