Welcome to Pandora FMS Community › Forums › Community support › Advanced troubleshooting › rss blocking
-
rss blocking
Posted by liqweed on January 25, 2010 at 20:02hello again
can we somehow disable (allow for specific IPs) RSS?
http://ourpandora/operation/events/events_rss.php is readable by whole world..
“IP list with API access” is this setting affecting this behaviour?
thanks
Sancho replied 16 years, 6 months ago 2 Members · 2 Replies -
2 Replies
-
::
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;
} -
Log in to reply.