mod_auth_mysql can be used to limit access to documents served by a web server by checking data in a MySQL database.