The http_file_access function checks if a file access is allowed for a specified user. This allows access protection of sensitive web pages. The protected web pages will not display for unpriviliged users. Instead of this, the Web server will show Error page 403 - Forbidden. The argument fname points to a buffer containing the file name of a file, which the user is trying to access. The file name is a 0-terminated string. The argument user_id is an user identification number, the same as it was returned from the http_check_account function. It identifies the user, who is trying to access the specified file. The http_file_access function is in the HTTP_MultiUser.c module. The prototype is defined in net_config.h. note - This function is optional. If the HTTP resource access restriction is not used, this function is not required.
|