Commit Graph
202 Commits
Author SHA1 Message Date
Steven Black a7c73805eb Fix IndentationError. 2015-11-20 22:12:57 -05:00
Steven Black d372865698 Refactor: whitespace for consistency and readability. 2015-11-20 22:10:49 -05:00
Steven Black 1e69a99817 Fresh amalgamated hosts file with 26,932 unique entries. 2015-11-20 21:12:17 -05:00
Steven Black fb53b283d9 Updated data sources. 2015-11-20 21:11:56 -05:00
Steven Black e35ca1ecae Merge pull request #45 from hd074/master
hotfix for duplicates and artefacts
2015-11-20 21:09:39 -05:00
Steven Black 30db25fac4 Merge pull request #43 from FrancoGag/master
Check if 'hosts' file exists
2015-11-15 23:01:18 -05:00
Hannes Domschke 2b18fa1e1a better delete after updating so we dont end up with an empty hosts file if update goes wrong and causes a crash 2015-11-15 23:23:06 +01:00
Hannes Domschke 5f2bb91173 hotfix for duplicates and artefacts 2015-11-15 22:38:07 +01:00
Franco Gagliardi cdaffa0202 Removed sys.exit() 2015-11-15 16:19:53 -03:00
Steven Black 02822ff025 Merge pull request #44 from mariusv/patch-2
OSX DNS flush to cover El Capitan
2015-11-15 10:39:29 -05:00
Marius Voila d899ae6744 OSX DNS flush to cover El Capitan
Updated the readme to cover OSX El Capitan for flushing DNS
2015-11-15 07:30:04 +00:00
Franco Gagliardi 0b0988eeef Check if 'hosts' file exists
We need to check that the file exists before trying to update it, and if it doesn't we try to create an empty 'hosts' file.
2015-11-14 22:32:17 -03:00
Steven Black 80dcdfe00c Latest readme: 26,899 entries. 2015-11-09 23:10:58 -05:00
Steven Black 845bad283a Why list the local data file name. I don't get it. 2015-11-09 23:10:42 -05:00
Steven Black feb9c6e110 Revert "Why list the local source file name? I don't get it."
This reverts commit 375c57a148.
2015-11-09 23:09:00 -05:00
Steven Black 375c57a148 Why list the local source file name? I don't get it. 2015-11-09 23:06:21 -05:00
Steven Black 544490e99a Not happy with the way this lists not the source URLS, but the local file names. 2015-11-09 23:03:23 -05:00
Steven Black f39a75adb2 Updated data files. 2015-11-09 23:01:17 -05:00
Steven Black c0766a4e87 Better handle the no-domain-in-the-line error in data. This closes #38. 2015-11-09 23:00:37 -05:00
Steven Black fc62f2db46 Merge pull request #36 from FrancoGag/master
Delete .DS_Store from Data
2015-11-09 15:24:47 -05:00
FrancoGag d1dba20663 Renamed removeDups() to removeDupsAndExcl()
Renamed removeDups() to reflect that now the function also excludes domains and keywords in the whitelist.
2015-11-09 17:09:59 -03:00
FrancoGag e1d41823bd Fixed: Exclude domains in the whitelist (2)
Now it probably works with Python 3 and the code is much cleaner.
2015-11-07 17:54:36 -03:00
FrancoGag 6a07a22b61 Fixed: Exclude domains in the whitelist
It still can be improved but now it's working as it should.
Not tested with Python 3. Working with Python 2.7.10
2015-11-07 17:01:55 -03:00
FrancoGag 58e5277b25 Create whitelist 2015-11-05 10:47:55 -03:00
FrancoGag 461b06710c Exclude domains contained in a whitelist 2015-11-05 10:44:42 -03:00
FrancoGag ad5605c4c0 Ignore whitelist file 2015-11-05 10:37:20 -03:00
FrancoGag 091a18ee8d Update updateHostsFile.py 2015-11-05 09:38:08 -03:00
FrancoGag 45fa325d42 Delete .DS_Store from Data
If the Data folder is opened in OSX it creates a .DS_Store file and the python script tries to use it a source and returns errors, deleting it solves this issue.
2015-11-04 11:47:55 -03:00
Steven Black 94ea037628 Updated hosts file, still with 26,888 entries. 2015-10-30 11:19:31 -04:00
Steven Black 0956c22f2e Updated data and new amalgamated hosts file with 26,888 entries. 2015-10-30 11:16:50 -04:00
Steven Black 960491f813 Added a line to myhosts, for better clarity in the generated file. 2015-10-30 11:16:07 -04:00
Steven Black c49f8ed475 Documentation for the myhosts file. 2015-10-30 11:13:18 -04:00
Steven Black 90ad37d6fc Merge pull request #34 from qutorial/myhosts
Update to include preamble handling
2015-10-30 11:05:59 -04:00
Steven Black 46c988bced Merge pull request #35 from qutorial/ubuntufix
Fixed ubuntu hosts file relaod
2015-10-30 10:55:17 -04:00
Zaur Molotnikov 05eef7214c Fixed ubuntu hosts file relaod 2015-10-30 11:18:08 +01:00
Zaur Molotnikov 7934f87b41 Update to include preamble handling 2015-10-30 11:13:21 +01:00
Steven Black 56e956e99a One new host, so updated hosts file. 2015-10-28 21:00:32 -04:00
Steven Black c23b0c58a1 New host 2015-10-28 20:58:15 -04:00
Steven Black 74e17d666b Updated hosts file with 26,891 unique entries. 2015-10-28 19:34:19 -04:00
Steven Black aa8b9508e0 File is unavailable. Don't raise this error; just eat it. 2015-10-28 19:33:59 -04:00
Steven Black 1e24a1996f Trim whitespace in updateHostsFile.py 2015-10-28 19:33:16 -04:00
Steven Black 97ed3ba363 Updated data files. 2015-10-28 19:31:59 -04:00
Steven Black 659027824e Merge pull request #33 from qutorial/migrationToPython3
Migration to python3
2015-10-28 19:17:13 -04:00
Zaur Molotnikov d516616750 Cross-python implementation 2015-10-27 00:29:53 +01:00
Zaur Molotnikov 6f6693c17a Migrated to Python 3 2015-10-26 23:16:55 +01:00
Steven Black 4ae6c5bf82 Merge pull request #30 from qqo/master
Explicitly lowercase hostname to prevent mixed-case duplicates.
2015-10-23 20:56:32 -04:00
qqo 10c4449774 'suffix' in regex matches empty string on all the data files, except
one (incorrect) line containing port:
0.0.0.0 telemetry.appex.bing.net:443
The resulting entry in hosts file generated like this:
0.0.0.0 telemetry.appex.bing.net :443
which is incorrect. The bug was not spotted only because the incorrect
line in the data source was after the correct line without port,
thus it was ignored and not added to resulting hosts file.
2015-10-24 01:43:18 +03:00
qqo d810d25178 Explicitly lowercase hostname to prevent mixed-case duplicates. 2015-10-24 00:58:12 +03:00
Steven Black febbd3e29a New amalgamated hosts file, now with 26,938 unique entries. 2015-10-23 09:17:31 -04:00
Steven Black 2f71cde879 Updated data from three hosts providers. 2015-10-23 09:16:55 -04:00