Pandora FMS Community

rss blocking

liqweed · 25 ene 2010, 20:02 · 3 mensajes · 63 visitas

  1. Inicio del debate

    hello again can we somehow disable (allow for specific IPs) RSS? (Link not available anymore) is readable by whole world.. "IP list with API access" is this setting affecting this behaviour? thanks

  2. Nope at this version, but it's a very nice idea. I've added to our feature request tracker ! Try adding this code to events_rss.php, should work: $ipOrigin = $_SERVER['REMOTE_ADDR']; /** * * @param $ip * @return unknown_type */ function isInACL($ip) {         global $config;         //If set * in the list ACL return true         if(in_array('*', $config['list_ACL_IPs_for_API']))                 return true;         if (in_array($ip, $config['list_ACL_IPs_for_API']))                 return true;         else                 return false; } if (!isInACL($ipOrigin)) {     exit; }

  3. BTW it's so easy that I've commited to our SVN code repository :) Thx for the idea !

Entra en tu cuenta para publicar.