Added check_domain_blocklist

This commit is contained in:
Hypolite Petovan 2017-04-25 22:45:56 -04:00
parent 7d9d22914f
commit c7e1a8e871
3 changed files with 51 additions and 8 deletions

View file

@ -514,6 +514,11 @@ function dfrn_request_post(App $a) {
return; // NOTREACHED
}
if (! check_domain_blocklist($url)) {
notice( t('Blocked domain') . EOL);
goaway(App::get_baseurl() . '/' . $a->cmd);
return; // NOTREACHED
}
require_once('include/Scrape.php');