Commit Graph
1172 Commits
Author SHA1 Message Date
StevenBlack cf130d092c New data from yoyo.org, and CoinBlockerList. v1.0.0 2018-03-03 15:16:10 -05:00
Steven Black 2bd48fb7ba Merge pull request #519 from FadeMind/cross-sudo
cross-compatible sudo FIXED CI
2018-03-03 15:13:16 -05:00
Steven Black aa6b09561b Merge pull request #520 from funilrys/notDavid-protocol
Possible fix of the encoding and/or downlaod issue(s)
2018-03-03 15:11:38 -05:00
funilrys 1e64d1287a Review of readme_template.md
Please note that this patch mothe the unit tests paragraph after dependencies installation.
2018-03-03 21:09:45 +01:00
funilrys 93748698d5 Update of readme_template.md
Please note that this patch explitly set which `pip` version to use according
to the user Python version.
2018-03-03 20:34:10 +01:00
FadeMind ee411d82c9 updateHostsFile.py: DEL whitespace after '['
https://travis-ci.org/StevenBlack/hosts/jobs/346915934#L606-L609
2018-03-03 15:30:49 +01:00
funilrys 50fde09ed7 Fix grammar.
This patch fix: https://github.com/StevenBlack/hosts/pull/520/files/d98b31fb921ff35fb1a421243fa4876504cf676e#r171971716

Thanks to @gfyoung
2018-03-02 22:56:32 +01:00
funilrys 6e62383b28 Review of Notes indentation
This patch fix : https://github.com/StevenBlack/hosts/pull/520#discussion_r171971481
+ It also fix (forgoten coma) : https://github.com/StevenBlack/hosts/pull/520#discussion_r171971574
2018-03-02 22:53:15 +01:00
funilrys bebf7744ca Review of the domain_to_idna() notes.
This patch fix : https://github.com/StevenBlack/hosts/pull/520#discussion_r171971574
2018-03-02 22:51:10 +01:00
funilrys d06bea8fb8 Introduction of dependencies installation instructions 2018-03-02 22:49:15 +01:00
funilrys d98b31fb92 Removing of condescending line.
This patch fix : https://github.com/StevenBlack/hosts/pull/520/files/4798710029b1cfc23130a0588c3a2c7e59171f86#r171969863
2018-03-02 22:43:24 +01:00
funilrys 4798710029 Introduction of domain_to_idna() tests. 2018-03-02 22:23:21 +01:00
funilrys 780e47ffe5 Review of domain_to_idna()
This patch review the way we get the comment at the end of a line.
I also did an application of DRY (Do not Repeat Yourself)
and/or KISS (Keep It Simple, Stupid) by refactoring the 2 `else`
statements into one line.
2018-03-02 22:07:11 +01:00
funilrys 8f00cb4d76 Deletion of a trailing '#'.
Please note that I have added that '#' by mistake.
2018-03-02 21:43:52 +01:00
funilrys 1141823bc8 Fix tests issues.
This patch introduce the installation of dependencies needed my the main commit.

This patch fixes:
 * https://travis-ci.org/funilrys/hosts/jobs/347504195#L592
 * https://travis-ci.org/funilrys/hosts/jobs/347504195#L598
2018-02-28 23:29:18 +01:00
funilrys 3403b10e50 Fix tests issues.
This patch fixes:
 * https://travis-ci.org/funilrys/hosts/jobs/347500695#L400
 * https://travis-ci.org/funilrys/hosts/jobs/347500695#L401
2018-02-28 23:24:58 +01:00
funilrys f5c8ac58b2 Fix tests issue.
This patch fix https://travis-ci.org/funilrys/hosts/jobs/347500695#L399
2018-02-28 23:23:30 +01:00
funilrys 079d5ddd7f Fix tests issue
This patch fix https://travis-ci.org/funilrys/hosts/jobs/347500695#L397

Please also note that I introduced that patch because
we do not directly use lxml but it is required by
BeautifulSup() to parse the HTML.
2018-02-28 23:22:32 +01:00
funilrys 1fea720034 Fix tests issue
This patch fix https://travis-ci.org/funilrys/hosts/jobs/347500695#L398
2018-02-28 23:20:01 +01:00
funilrys d3ef85df17 Review typo + fix test issue.
This patch fix https://travis-ci.org/funilrys/hosts/jobs/347497718#L749
2018-02-28 23:15:01 +01:00
funilrys 079ad6b674 Fix test issue.
This patch fix https://travis-ci.org/funilrys/hosts/jobs/347497718#L748
2018-02-28 23:13:13 +01:00
funilrys ff58bbd1f2 Introduction of requirements.txt
Please note that those file can be used to install
dependencies with 'pip install -r requirements.txt'
2018-02-28 23:08:45 +01:00
funilrys c82f691952 Review of get_file_by_url()
Please note that this patch also introduce
which is in charge of converting a domain in a line into
IDNA and/or UTF-8 format.

Also note the introduction of BeautifulSoup() which helps
us to decode data from the downloaded URL.

Fixes (issue(s)/protocol(s) I was able to reproduce):
 * https://github.com/StevenBlack/hosts/issues/514#issuecomment-368932152

Possible fix of (issue(s)/protocol(s) I wasn't able to reproduce):
 * https://github.com/StevenBlack/hosts/issues/514#issue-300048106
 * https://github.com/StevenBlack/hosts/issues/494#issue-296166492
 * https://github.com/StevenBlack/hosts/issues/420#issue-267453114
 * https://github.com/StevenBlack/hosts/issues/372#issue-246927047
 * https://github.com/StevenBlack/hosts/issues/382#issuecomment-322010562
2018-02-28 23:06:58 +01:00
StevenBlack 37da299efb New data from yoyo.org, and CoinBlockerList. 2018-02-28 14:28:41 -05:00
FadeMind 33ba41bbea updateHostsFile.py: cross-compatible sudo 2018-02-27 19:26:40 +01:00
FadeMind ce5e3d113e Merge pull request #1 from StevenBlack/master
merge
2018-02-27 19:18:56 +01:00
Steven Black 2877752294 Merge pull request #516 from ScriptTiger/patch-1
Removed Cryptominer Domains
2018-02-27 12:07:29 -05:00
StevenBlack e2ee547063 New data from someonewhocares.org. 2018-02-26 13:38:01 -05:00
StevenBlack fd9d1d0836 New domains submitted. 2018-02-26 13:36:22 -05:00
Steven Black 3d6cec8170 Merge pull request #517 from paxperscientiam/patch-4
phish
2018-02-26 00:06:28 -05:00
Chris 821f08b52d phish
Both of these ".win" sites serve up rotten phish (adobe flash).
2018-02-25 23:50:42 -05:00
ScriptTiger 7d9d2a02ef Removed Cryptominer Domains 2018-02-26 11:34:04 +08:00
StevenBlack 38fddd4862 Reinstate help.evernote.com. Closes #511. 2018-02-25 13:47:44 -05:00
Steven Black ca4fcbab0e Merge pull request #512 from FadeMind/patch-1
readme_template.md: Chrome required manually cleanup DNS Cache
2018-02-25 13:31:01 -05:00
FadeMind 77d4c68ab0 readme_template.md: tenses fixes 2018-02-25 19:22:21 +01:00
StevenBlack 90c5640341 Issue #511: fix - remove help.evermote.com on a trial basis, hope they've come to their senses. 2018-02-25 13:04:30 -05:00
StevenBlack 182d18ba20 Issue #510: fix - new updates from CoinBlockerList. Also new domains from yoyo.org. 2018-02-25 12:49:53 -05:00
FadeMind b2945e022e readme_template.md: Chrome required manually cleanup DNS Cache
See: https://superuser.com/questions/723703
2018-02-25 10:31:56 +01:00
Steven Black fab9fbc690 Issue #509: fix - pull the correct file from ZeroDot1/CoinBlockerLists. 2018-02-24 23:46:22 -05:00
StevenBlack 1341e7af52 New data from yoyo.org, someonewhocares.org, and KadHosts. 2018-02-24 18:04:46 -05:00
StevenBlack 40a06c2415 Adding CoinBlockerList. Thanks ZeroDot1, via @FadeMind.
Adding a good coin blocking list to the repo.
2018-02-24 18:00:21 -05:00
StevenBlack cbf4b0be15 New data from yoyo.org, and someonewhocares.org. 2018-02-20 10:04:52 -05:00
StevenBlack 2d3b88ecfd Issue #506: fix - dropping Spotify-Ad-free. cc @CHEF-KOCH. 2018-02-20 10:03:08 -05:00
Steven Black 007254e10f Merge pull request #503 from ankitpati/minimise-hosts-file
Add Option to Minimise hosts File
2018-02-16 22:07:47 -05:00
Ankit Pati dae2172f3b update docs after adding minimise switch 2018-02-17 07:36:10 +05:30
Ankit Pati 9a8b507f6e update defaults dictionary for minimise switch 2018-02-17 07:22:45 +05:30
Steven Black 2aa50e88be Merge pull request #502 from ankitpati/fix-hardcoded-offset-in-compression
Remove Hardcoded Offset in Compression
2018-02-16 15:29:54 -05:00
Ankit Pati 01db326459 Add Option to Minimise hosts File
This option (--minimise, -m) differs from compress (--compress, -c) in
that it keeps each host on a different line, while still removing
unnecessary newlines and comments.

This is necessary because many implementations of URL blockers that rely
on hosts files do not conform to the standard which allows multiple
hosts on a single line.
2018-02-17 00:22:25 +05:30
Ankit Pati db29acda65 FIX: Remove Hardcoded Offset in Compression
An offset of 7 was hardcoded in the function compress_file, presumably
to skip over the default target IP address of 0.0.0.0 in a hosts file.
However, this causes problems when the default is overridden using the
--ip or -i flag, causing visibly garbled output in the generated hosts
file.

Fix is to calculate the length of target IP at runtime.
2018-02-16 23:45:10 +05:30
StevenBlack 04cbba965c Update for recent edits at source. 2018-02-15 09:51:33 -05:00