Skip to content

Block the stuff to improve privacy, security and experience

Notifications You must be signed in to change notification settings

TheUpBeat/Block-Ad-Web-Internet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Block Ad Web Internet

This repository helps you to improve your privacy and security by making a list of websites that are to be blocked which track the user advertisements. Providing advertisements is not a problem, as it helps the creator gain money, but its not right to track the user. As it cannot be distinguished, we try to block all the ads for our privacy and security concerns.

What the repository contains?

We accumulate the websites from different repositories and ours to make a list that contains a large number of websites. The repository that are included in the list will be mentioned in the references section.

Lists

The list can be used in many tools. The tools vary from browser based to hosts file.

Tools

Web Extensions:

Network-Wide Blocking:

HOSTS:

  • For Windows use Hostman to edit the hosts file. Or can be edited manually, the hosts file is located at c:\Windows\System32\Drivers\etc\hosts.
  • For Linux use hBlock. Or to edit manually, hosts file is located at /etc/hosts.
  • For Mac use Gas Mask to edit the hosts file. Or as it is a Unix-Based system the hosts file is located at etc/hosts
  • For Android use Blokada or AdGuard. You can use Energized Protection to edit the hosts from the terminal (And they also provide a good and extensive hosts list).

FAQ

To convert the list to HOSTS

awk '{ printf "0.0.0.0"; print }' Block_List.txt > HOSTS.txt

To Compare the present list with a new list, get the uncommon addresses and append it to the present list.

comm -13 <(sort Block_List.txt) <(sort hosts.txt) >> Block_List.txt

To remove blank space in the beginning of the file

sed 's/ //g' hosts.txt > hosts_duplicate.txt

To remove 0.0.0.0 (or) 127.0.0.1 from the HOSTS file

awk '{ if($1=="0.0.0.0" || $1=="127.0.0.1") {$1= ""}; print }' hosts_duplicate.txt > hosts.txt

To delete the lines that start "#"

sed '/^#/d' Block_List.txt > hosts_duplicate.txt

For iptable rules and ipsets (still under development), check this repo:

https://github.com/TheUpBeat/Firewall-Lists

TO-DO:

  • Make a list specifically for mobile devices.
  • Firewall Config

References

About

Block the stuff to improve privacy, security and experience

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages