Skip to content

Bash script to create a uniq & sorted hostlist from multiple sources.

License

Notifications You must be signed in to change notification settings

itspatkar/Hosts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hosts Script

Bash script to create a uniq & sorted hostlist from multiple sources.

Configuration :

Parameters Info
LOCAL_HOST local server to which the request is redirected (default: 0.0.0.0)
OUTPUT_HOST output hosts-styled blocklist (default name: hosts.txt)
source.list plain text file from which hosts-styled sources are to be fetch
source.domain plain text file from which only ip/domain sources are to be fetch

NOTE:

  • source.list : should have only host-styled format sources. Ex: 0.0.0.0 www.example.com
  • source.domain : should have only ip/domain format sources. Ex: www.example.com

Usage :

  • Clone repo
  • Add hosts sources/links in source.list and source.domain per line. (remember above noted points)
  • If the list has only one entry, then add an extra empty line at the end. (some issue in script)
  • Run generate.sh

Hosts Lists

Curated and well-maintained hostlists to block social media, trackers, porn sites & ads.

Hosts Recipe RAW Link
Porn Porn Sites + Pornaway's Porn Sites + Porn Ads link
Trackers MIUI + Microsoft Trackers link
Facebook - link
Google - link
Instagram - link
Linkedin - link
Twitter - link
WhatsApp - link

Credits For Sources :

Made with by ItsPatkar

About

Bash script to create a uniq & sorted hostlist from multiple sources.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages