Skip to content

Commit c55b4ba

Browse files
Add a new inactive list for parking, not resolving, dead domains ...
1 parent b71a5be commit c55b4ba

File tree

3 files changed

+617
-3
lines changed

3 files changed

+617
-3
lines changed

.travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
- echo 'nameserver 168.95.1.1' | sudo tee -a /etc/resolv.conf
1616
- touch failed-domain
1717
script:
18+
- for domain in `cat inactive list | grep -Ev '^(#|$)' | sort | uniq -c | grep -Ev '^\s+1' | awk '{print $NF}'`; do echo "$domain" >> duplicated-domain; done
1819
- for domain in `grep -v -E '^(#|$)' list`; do nslookup $domain > /dev/null || echo "$domain" | tee -a failed-domain; done
1920
- for domain in `cat failed-domain`; do nslookup $domain; done
20-
- if [ "$(wc -l < failed-domain)" -gt "0" ]; then echo "Failed domain(s):"; cat failed-domain; exit 1; fi
21+
- if [ "$(wc -l < failed-domain)" -gt "0" ]; then echo "Failed domain(s):"; cat failed-domain; fi
22+
- if [ "$(wc -l < duplicated-domain)" -gt "0" ]; then echo "Duplicated domain(s):"; cat duplicated-domain; fi
23+
- if [ "$(cat duplicated-domain failed-domain | wc -l)" -gt "0" ]; then exit 1; fi

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ You can use this domain list in your network environment to block URL shorteners
99

1010
Data in this repository will not be realtime updated, the effort to maintain the list is huge, feel free to submit report of missing domains or false positives.
1111

12-
Those domains were used as url-shortener but now abandoned should not be listed here.
12+
Those domains were used as url-shortener but now abandoned will not be listed in the `list` file, but will be listed in the `inactive` file.
1313

1414
## Direct link
1515

16-
To use this host list, you can subscribe or download the file from the link below:
16+
To use these host lists, you can subscribe or download the file from the link below:
1717

1818
- https://raw.githubusercontent.com/PeterDaveHello/url-shorteners/master/list
1919

20+
- https://raw.githubusercontent.com/PeterDaveHello/url-shorteners/master/inactive
21+
2022
## License
2123

2224
This project is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License(CC-BY-SA-4.0)](https://creativecommons.org/licenses/by-sa/4.0/).

0 commit comments

Comments
 (0)