mirror of
https://github.com/privacy-protection-tools/anti-AD.git
synced 2025-01-22 14:29:16 +08:00
主动探测结果列表
This commit is contained in:
parent
759dd0c4cf
commit
e023637063
5689
dist/anti-ad-easylist-basic.txt
vendored
Normal file
5689
dist/anti-ad-easylist-basic.txt
vendored
Normal file
File diff suppressed because it is too large
Load Diff
29097
dist/anti-ad-easylist-full.conf
vendored
Normal file
29097
dist/anti-ad-easylist-full.conf
vendored
Normal file
File diff suppressed because it is too large
Load Diff
5690
dist/anti-ad-surge-basic.txt
vendored
Normal file
5690
dist/anti-ad-surge-basic.txt
vendored
Normal file
File diff suppressed because it is too large
Load Diff
29098
dist/anti-ad-surge-full.txt
vendored
Normal file
29098
dist/anti-ad-surge-full.txt
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -46,8 +46,8 @@ if(count($arr_china_list) <= 0 && count($arr_dead_horse) <= 0){
|
||||
$black_list = require LIB_DIR . '/black_domain_list.php';
|
||||
|
||||
$src_fp = fopen(SRC_FILE, 'r');
|
||||
$basic_fp = fopen(DIST_DIR . '/anti-ad-basic.conf', 'w');
|
||||
$full_fp = fopen(DIST_DIR . '/anti-ad-full.conf', 'w');
|
||||
$basic_fp = fopen(DIST_DIR . '/anti-ad-dnsmasq-basic.conf', 'w');
|
||||
$full_fp = fopen(DIST_DIR . '/anti-ad-dnsmasq-full.conf', 'w');
|
||||
$write_len = fwrite($basic_fp, '#TIME=' . date('YmdHis') . "\n");
|
||||
$write_len += fwrite($basic_fp, '#URL=https://github.com/gentlyxu/anti-AD' . "\n");
|
||||
$write_len = fwrite($full_fp, '#TIME=' . date('YmdHis') . "\n");
|
||||
|
@ -4,4 +4,11 @@
|
||||
source /etc/profile
|
||||
cd $(cd "$(dirname "$0")";pwd)
|
||||
|
||||
nohup php research-addr.php >> ./std-research.out &
|
||||
nohup php research-addr.php >> ./std-research.out
|
||||
cd ../dist/
|
||||
sed -E 's/address=\/(.+)?\//||\1^/g' anti-ad-dnsmasq-full.conf > anti-ad-easylist-full.conf
|
||||
sed -E 's/address=\/(.+)?\//||\1^/g' anti-ad-dnsmasq-basic.conf > anti-ad-easylist-basic.conf
|
||||
sed -E 's/address=\/(.+)?\//DOMAIN-SUFFIX,\1,REJECT/g' anti-ad-dnsmasq-basic.conf >anti-ad-surge-basic.txt
|
||||
sed -E 's/address=\/(.+)?\//DOMAIN-SUFFIX,\1,REJECT/g' anti-ad-dnsmasq-full.conf >anti-ad-surge-full.txt
|
||||
sed -i '3 i [RULE]' anti-ad-surge-basic.txt
|
||||
sed -i '3 i [RULE]' anti-ad-surge-full.txt
|
||||
|
Loading…
Reference in New Issue
Block a user