Commit Graph

343 Commits

Author SHA1 Message Date
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
Steven Black
0fed57feb2 Fresh amalgamated hosts file with 26,826 entries. 2015-10-21 13:08:41 -04:00
Steven Black
c47820d3bb Updated data from someonewhocares.org.
Signed-off-by: Steven Black <steveb@stevenblack.com>
2015-10-21 13:07:28 -04:00
Steven Black
4819602743 Merge pull request #29 from qutorial/master
os.path.join introduced
2015-10-21 13:05:10 -04:00
Zaur Molotnikov
7e8b1674fb os.path.join introduced 2015-10-19 12:27:41 +02:00
Steven Black
3e76274956 Latest amalgamated hosts file. 2015-10-18 23:36:56 -04:00
Steven Black
0517025531 This domain dishes autoplay video which I hate. 2015-10-18 23:36:19 -04:00
Steven Black
6f6719b399 New amalgamated hosts file with 26,827 unique entries.
Signed-off-by: Steven Black <steveb@stevenblack.com>
2015-10-18 20:57:33 -04:00
Steven Black
e7738d82bb Refinements to the readme template.
Signed-off-by: Steven Black <steveb@stevenblack.com>
2015-10-18 20:56:58 -04:00
Steven Black
954173f6f2 Updated data from yoyo.org.
Signed-off-by: Steven Black <steveb@stevenblack.com>
2015-10-18 20:56:31 -04:00