|
@@ -30,6 +30,7 @@
|
30
|
30
|
| [[RSS Reader]] |
|
31
|
31
|
| [[Git Projects]] |
|
32
|
32
|
| [[Adding or removing users]] |
|
|
33
|
+| [[Blocking Ads]] |
|
33
|
34
|
|
34
|
35
|
* Readme
|
35
|
36
|
After the system has installed a README file will be generated which contains passwords and some brief advice on using the installed systems. You can read this with the following commands:
|
|
@@ -701,3 +702,41 @@ control
|
701
|
702
|
Return to the <a href="index.html">home page</a>
|
702
|
703
|
</center>
|
703
|
704
|
#+END_EXPORT
|
|
705
|
+
|
|
706
|
+* Blocking Ads
|
|
707
|
+Everyone except for advertisers hates adverts. Not only are they annoying, but they can also consume a lot of bandwidth, be a privacy problem in terms of allowing companies to track your browsing habits and also any badly written scripts they contain may introduce exploitable security holes.
|
|
708
|
+
|
|
709
|
+You can block ads for any devices connected to your local network by installing the *pihole* app from *Add/Remove Apps* on the administrator control panel. This may help to improve overall performance of your devices by not wasting time downloading unwanted images or scripts.
|
|
710
|
+
|
|
711
|
+** Set a static IP address
|
|
712
|
+
|
|
713
|
+Once you've done that then ensure that your system has a static local IP address (typically 192.168..) using the option on the control panel. You will also need to know the IP address of your internet router, which is usually *192.168.1.1* or *192.168.1.254*.
|
|
714
|
+
|
|
715
|
+When that's done select *About this system* from the control panel and see the IPv4 address (ignore the /24 part). You can use this as a DNS address in two ways:
|
|
716
|
+
|
|
717
|
+** On each client system within your local network
|
|
718
|
+
|
|
719
|
+#+begin_src bash
|
|
720
|
+sudo chattr -i /etc/resolv.conf
|
|
721
|
+sudo nano /etc/resolv.conf
|
|
722
|
+#+end_src
|
|
723
|
+
|
|
724
|
+Comment out any existing entries with a # character and add:
|
|
725
|
+
|
|
726
|
+#+begin_src bash
|
|
727
|
+nameserver [IPv4 address from the About screen]
|
|
728
|
+#+end_src
|
|
729
|
+
|
|
730
|
+Normally /resolv.conf/ will be overwritten every time your reboot, but you can prevent this with:
|
|
731
|
+
|
|
732
|
+#+begin_src bash
|
|
733
|
+sudo chattr +i /etc/resolv.conf
|
|
734
|
+#+end_src
|
|
735
|
+
|
|
736
|
+** On your internet router
|
|
737
|
+If you can access the settings on your local internet router then this is the simplest way to provide ad blocking for all devices which connect to it.
|
|
738
|
+
|
|
739
|
+Edit the DNS settings and add the IPv4 address which you got from the control panel About screen. Exactly how you do this will just depend upon your particular router model. You may also need to set the same address twice, because two addresses are conventional.
|
|
740
|
+
|
|
741
|
+** Configuring block lists
|
|
742
|
+You can configure the block lists which the system uses by going to the *administrator control panel*, selecting *App Settings* then choosing *pihole*. You can also add any extra domain names to the whitelist if they're being wrongly blocked or to the blacklist if they're not blocked by the current lists.
|