diff options
author | Friendika <info@friendika.com> | 2011-04-21 17:29:47 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-04-21 17:29:47 -0700 |
commit | 9e19eef1941fff3e2a8785e5daa6d978e9de4900 (patch) | |
tree | 5027dce8811955f980f0ecb9fbaa37b8b720368b /mod/dfrn_poll.php | |
parent | 1d4791d38c932548df0807f6d26290ea8346765e (diff) | |
download | volse-hubzilla-9e19eef1941fff3e2a8785e5daa6d978e9de4900.tar.gz volse-hubzilla-9e19eef1941fff3e2a8785e5daa6d978e9de4900.tar.bz2 volse-hubzilla-9e19eef1941fff3e2a8785e5daa6d978e9de4900.zip |
"firewall" setting - block all public pages from the public if configured to do so
Diffstat (limited to 'mod/dfrn_poll.php')
-rw-r--r-- | mod/dfrn_poll.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index f8c726c1a..718aa165c 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -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); |