troubleshooting Question

How can I block all but a few websites on a raspberry pi?

Avatar of sqlagent007
sqlagent007Flag for United States of America asked on
Raspberry Pi
6 Comments1 Solution109 ViewsLast Modified:
How can I block all but a few websites on a raspberry pi? I have created a PI for my children and I need to limit internet access to all but a few sites.

I have tried installing "privoxy" and creating a WHITELIST / BLACKLIST in section 4 of the config file
https://www.privoxy.org/faq/configuration.html
- 3.27. Can I set-up Privoxy as a whitelist of "good" sites?

However when I reboot the PI and attempt any site not in the white list I am able to browse the site.

I took this directly from the documentation and have tired it with and without the "{" wrapping the +block command.
############################################################
 # Blacklist
 ############################################################
 { +block }
 / # Block *all* URLs

 ############################################################
 # Whitelist
 ############################################################
 { -block }
  kids.example.com
  toys.example.com
  games.example.com

Can anybody help me understand what I am doing wrong?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros