[pmwiki-users] Run cookbook or not depending the visitor's IP

Peter Bowers pbowers at pobox.com
Thu Oct 13 00:22:20 CDT 2011


On Thu, Oct 13, 2011 at 5:45 AM, ABClf <languefrancaise at gmail.com> wrote:
> if my ip, do nothing,
> else include actionlog recipe

if ($_SERVER['REMOTE_ADDR'] != 'www.xxx.yyy.zzz')
   include_once("$FarmD/cookbook/actionlog.php");

Be aware that a lot of these $_SERVER values can be spoofed, so it's
not fool-proof.

-Peter



More information about the pmwiki-users mailing list