[pmwiki-users] allow editing only from one IP
Patrick R. Michaud
pmichaud at pobox.com
Wed Sep 24 13:21:45 CDT 2008
On Wed, Sep 24, 2008 at 06:00:17PM +0200, Farkas, Illes wrote:
> Dear PmWiki Users,
> Is it possible to allow editing only from one selected IP (and disallow from
> all others) ?
if ($action == 'edit' && @$_SERVER['REMOTE_ADDR'] != '192.168.1.1')
$action = 'browse';
This will prevent editing from any address other than 192.168.1.1.
More information about the pmwiki-users