Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Rules have been updated! Here

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[-]
Tags
v1 hosts auto 3

Auto Hosts v1.3.0
#1
Automate hosts file updates on Linux and MacOS. Block Firefox telemetry, Google snooping and web trackers at the root.



Auto Update Ad-blocking Hosts file on Linux and Mac


Automate the hosts file process with cronjobs.


Purpose of Hosts Files


Hosts files will reroute unwanted traffic from ad farms, behavioral tracking firms and malware sites to a blackhole; routing to 0.0.0.0 (localhost; your PC) when a request is made to a URL on the blacklist.

Which means any traffic that would have left your system for that destination, is sent inward, to your localhost and then abandoned.

Despite what some may suggest, hosts files are not "1980s technology" and still very useful today, as an additional layer of security.

Hosts file are a useful redundancy when coupled with ad blockers like uBlock Origin and uMatrix - while debugging or 'Temporarily Allow All on this Site' with Noscript can open you up to underlying attacks or privacy intrusions.

In-browser filters won't protect you if the browser itself is phoning home.

If you have an up-to-date hosts file, the risk is severely lessened.

Auto Hosts will automate the setup process for maintaining an up to date hosts file, by:

    Installing a weekly cronjob to pull fresh/updated copies of Steven Black's Host file and LocalFigurez Firefox Telemetry List (default is every Sunday at 7:22pm)

    Appends Facebook trackers, Linkedin ads, Google fonts, Firefox telemetry and other harvester sites that curated lists for whatever reason, have not added to their blacklists

    Refreshes DNS to instantiate the re-routed changes (Mac Only)
    If Devdom is installed, append all local virtualhosts

    Uninstall offers the ability to revert to a fresh hosts file and undo any changes made by Autohosts; a backup will be copied to /tmp
    Add custom filters from ~/autohosts on your desktop

Installing:
[Image: install.png]

Firefox Snooping list by LocalFigurez added in v1.1.0

For those of us who want our browser to behave like a browser and not a GPS anklet, this list will prove useful by blocking a plethora of tracking URLs. A few of which, some Firefox users have noticed seem to phone home even when the setting is toggled off in about:config.
Custom filters added in v1.3.0

You can easily append any domain you want to blacklist directly from your home directory. Your custom preferences will be stored with each subsequent update - set it and forget it!

Homepage
Code:
The contents of this section are hidden
You have No permissions

To Install
Code:
The contents of this section are hidden
You have No permissions

To upgrade an existing install
v1.3.0 - present
  • A fresh install of Autohosts is recommended, due to the functional changes of custom filters
v1.1.0 - present:
  • You do not need to uninstall the prior version
Simply re-run Autohosts

Code:
The contents of this section are hidden
You have No permissions



Adding custom filters
Custom filters are loaded to your home directory:
Code:
The contents of this section are hidden
You have No permissions
or
Code:
The contents of this section are hidden
You have No permissions
  • This file can be edited in your favorite text editor; command-line modifications are not necessary!
The contents of this section are hidden Adjust the cron time
If your computer is not powered on when the cron is scheduled, you'll miss the update. Ensure the cronjob is set for a time when you're most likely to have it on. You can adjust it by running:

Code:
The contents of this section are hidden
You have No permissions

and modifying the dates to suit.

Cron legend:
Code:
The contents of this section are hidden
You have No permissions

(
Code:
The contents of this section are hidden
You have No permissions
= every, so 5 straight stars is equal to every minute of every hour of every day and every month.. which you should never run while pulling 3rd party content!)

Uninstalling
[Image: uninstall.png]

Note: Because this script has to modify /etc/hosts - it needs elevated privileges (running as root or a sudo user). Scripts that require elevated privilenges should be read an analyzed so you know what's being done to your system! Read the source code of this script (and any others requiring such permissions) before you install.


Alternative uses with Hosts files

    If you're running DD-WRT, you can add a cron to pull a hosts file for your entire network or load Pi-Hole to a Raspberry Pi.
[-] The following 2 users say Thank You to mastersteven for this post:
  • PriSim, samspade9
Reply
#2
good work
Reply
#3
hmmm interesting
yes, i have akll resson

but will be easiear as the first one said

or maybe no dunno xd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)