Skip to content

Commit

Permalink
Updating where the spamlist comes from.
Browse files Browse the repository at this point in the history
  • Loading branch information
generalredneck committed Dec 29, 2015
1 parent cb77419 commit 0ce7437
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Command/UpdateSpamListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
if (empty($local_list)) {
$local_list = array();
}
$remote_list = file('https://raw.githubusercontent.com/desbma/referer-spam-domains-blacklist/master/spammers.txt');
// Get a copy of the list that is pulled own from
// https://raw.githubusercontent.com/desbma/referer-spam-domains-blacklist/master/spammers.txt
// to limit hot-linking to github and not require git to be installed.
$remote_list = file('http://generalredneck.com/sites/default/files/static-content/garefspam/spammers.txt');
$table = new Table($output);
$table->setHeaders(array('Status', 'Domain'));
$removed = array_diff($local_list, $remote_list);
Expand Down

0 comments on commit 0ce7437

Please sign in to comment.