Changes

Jump to: navigation, search

BlackBlockGoogle

1,654 bytes added, 13:40, 12 September 2018
Blocking using hosts file
__TOC__
A list of tools, please check their descriptions inside...== Methods ==
https://addonsThere are different methods for blocking google.mozilla.org/en-US/firefox/addon/librejs/
=== Browser extensions ======= Using ublock ====Install the extension ublock origin [https://addons.mozilla.org/en-US/firefox/addon/trackmenotublock-origin/] on your firefox installation.
https://addons1.mozilla.org/en-US/firefox/addon/decentraleyes/Open ublock dashboard
https://www2.eff.org/privacybadgerSelect the tab "My filters"
3. Past this list[https://prism-breakgist.orggithub.com/ennipos/e572a37c1939bf5bcdf04a38ef229152] hosts to your ublock configuration.
-------
=== Blocking using hosts file ===
You can edit your hosts file.
An axample of [[hosts]] file, it contains a whole list of all google, twitter, facebook, etc... domains
Doing this all listed domains will be redirected to that ip address. You can easily change the ip addresses whit your local host 127.0.0.1 or whatever you want :)
=== Blocking using a firewall ===
------
=== iptsetup.sh =Using OpenWRT / iptables == ==This is a script that would run on OpenWRT:
This is a script that would run With some modification (maybe) to the output processing of the ''nslookup'' command, or use ''host'', it'll work on OpenWRT:your local *NIX box
You would do, for example:
* root@OpenWrt:~# ./iptsetup.sh google.com gl 1
* That would create for you add_gl.sh and del_gl.sh in the current working directory.
* Then run ./add_gl.sh and all packets destined to google will be marked with MARK 1
<pre>
iptables -N reject
iptables -A OUTPUT -m mark --mark 4 1 -j reject
iptables -A reject -p tcp -j REJECT --reject-with tcp-reset
iptables -A reject -j REJECT --reject-with icmp-port-unreachable
* You also need to feed traffic into the m_ip chain in your mangle table.
* How you might wish to do this is left as an exercise to the reader ;-) (don't just blindly "follow", Read up!!) But for example, you could do something as simple as this, seeing as how you are running on a router<pre> iptables -t mangle -A PREROUTING -s lan-ip.of.user-that-not-want.google -j m_ip </pre>
#!/bin/sh
#
## setup iptsetup.sh domain.com name fwmark#
#
IP=`nslookup $1 | grep -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | tail -n1 | cut -d\ -f3`
</pre>
 
 
== Other tools ==
=== Useful addons for a private, free & open source internet ===
 
Privacy badge [https://www.eff.org/privacybadger/] is a very easy friendly and powerful tool for blocking trackers and ads.
 
Ensure your browser only runs opensource/readable javascript code with librejs [https://addons.mozilla.org/en-US/firefox/addon/librejs/]
 
Made your browser click and load random ads to obfuscate monitoring and tracking with adnauseam [https://adnauseam.io/]
 
Trackmenot [https://addons.mozilla.org/en-US/firefox/addon/trackmenot/]
 
Decentraleyes [https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/]
 
 
 
=== Prismbreak, a list of tools avoid massive surveillance ===
A list of tools, please check their descriptions inside...
https://prism-break.org/en/
34
edits

Navigation menu