Changes between Version 5 and Version 6 of HtmlOps
- Timestamp:
- Feb 20, 2010, 8:38:54 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HtmlOps
v5 v6 28 28 that disallows access to the admin web interface. 29 29 You can use '''htpasswd''' to create a '''.htpasswd''' file containing 30 credentials for yourself. 30 credentials for yourself: 31 32 {{{ 33 htpasswd -c .htpasswd username 34 }}} 31 35 32 36 == Project-defined protection policy == 33 37 34 The project-specificconfig file '''html/project/project.inc'''35 c ontainsa function '''auth_ops()''' that defines38 The config file '''html/project/project.inc''' 39 can specify a function '''auth_ops()''' that defines 36 40 a project-specific policy for protecting the admin interface. 37 41 Possible policies: 38 42 39 * No access (the default for new projects)40 43 * Access only if logged in as user from a given list. 41 44 * Access only to users with ADMIN or DEV flag set in forum_preferences.privileges. 45 * Access only from specific IP addresses. 42 46 * Any other policy you can think of. 43 47 44 By default, no access is allowed; 45 you'll need to edit this function to specify your project's policy. 48 Some examples are given in the function '''auth_ops_example()''' in the default config file. 46 49 47 Existing projects: look at '''html/project.sample/project.inc''',48 copy the '''auto_ops()''' function into your project.inc file,49 and edit it to specify your project's policy.