Whitelist?
-
Hi
Just discover you plugin after testing a ton of others captcha plugin and it looks like very cool π
But what about a whitelist option? Or maybe you can give us a little php snipet that can do the trick?
Something like:
if(isset($_SERVER['REMOTE_ADDR'])) { $My_Remote_ip = $_SERVER['REMOTE_ADDR']; if ($My_Remote_ip != 'XXX.XXX.XXX.XXX') { define('XRVEL_LOGIN_RECAPTCHA_ENABLED', true); } else { define('XRVEL_LOGIN_RECAPTCHA_ENABLED', false); } }or the one below if using a proxy:
if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $Zxffaddrs = explode(',',$_SERVER['HTTP_X_FORWARDED_FOR']); $My_Remote_ip = $Zxffaddrs[0]; if ($My_Remote_ip != 'XXX.XXX.XXX.XXX') { define('XRVEL_LOGIN_RECAPTCHA_ENABLED', true); } else { define('XRVEL_LOGIN_RECAPTCHA_ENABLED', false); } }Those code are the one I’m using with another WP Google reCaptcha, so they are just exemples.
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Whitelist?’ is closed to new replies.