This shows you the differences between two versions of the page.
— |
admin_pages_access_control [2018/06/05 13:30] (current) samtuke created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Access control to phpList admin pages ====== | ||
+ | This article describes ways of limiting access to the administrative pages beyond the standard username and password login system. | ||
+ | |||
+ | ===== Using Apache rewrite module ===== | ||
+ | |||
+ | Configure Apache to block access to all admin pages (only public pages are accessible): | ||
+ | |||
+ | <code apache> | ||
+ | Options -Indexes | ||
+ | < | ||
+ | RewriteEngine On | ||
+ | RewriteCond %{REQUEST_URI} ^/ | ||
+ | RewriteCond %{REQUEST_URI} !^/ | ||
+ | RewriteCond %{REQUEST_URI} !^/ | ||
+ | RewriteCond %{REMOTE_ADDR} !=x.x.x.x | ||
+ | RewriteRule ^(.*)$ - [R=403,L] | ||
+ | </ | ||
+ | </ |