Controlling access to your webpages

To limit access to your webpage you have to:
  • Group together all webpages you wish to protect in a directory (or subdirectories)
  • Create a .htaccess file with contents depending on the authentication method of your choice (see below)

Always use https

You don't want to send passwords as clear text over the network. So always use https. More information about our ssl-webservers can be found here.

Username - password

  • You can use a username and password combination you choose yourself, independent of other systems. More info here.
  • You can use the departemental LDAP server.
    • Note: you can only grant access to users with a departemental user account.
    • http://system.cs.kuleuven.be/cs/system/software/www/servers/
    • You can use Apache's mod_authnz_ldap in a .htaccess file.
    • You can use the php_ldap module in a php script. This only works for the php-script itself and the output it generates, not for individual files in the directory.
  • You can use the KU Leuven shibboleth infrastructure.
    • Note: you can only grant access to users with a KU Leuven account (students, staff).
    • Detailed info here

IP-address based access control

You can limit access to your webpage based on the ip-address of the client. More information can be found here.