"firewall" setting - block all public pages from the public if configured to do so
This commit is contained in:
parent
1d4791d38c
commit
9e19eef194
7 changed files with 41 additions and 1 deletions
|
@ -27,6 +27,10 @@ function dfrn_poll_init(&$a) {
|
|||
}
|
||||
|
||||
if(($dfrn_id === '') && (! x($_POST,'dfrn_id')) && ($a->argc > 1)) {
|
||||
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
|
||||
killme();
|
||||
}
|
||||
|
||||
logger('dfrn_poll: public feed request from ' . $_SERVER['REMOTE_ADDR'] );
|
||||
header("Content-type: application/atom+xml");
|
||||
$o = get_feed_for($a, '', $a->argv[1],$last_update);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue