Example of completely blocking a website using Puppy Linux hosts

Moderator: Forum moderators

Post Reply
User avatar
sucuklu yumurta
Posts: 159
Joined: Thu Mar 09, 2023 3:12 am
Location: France
Has thanked: 321 times
Been thanked: 27 times

Example of completely blocking a website using Puppy Linux hosts

Post by sucuklu yumurta »

How to Add Static Entries to the Hosts File on Linux
https://linuxiac.com/how-to-add-static- ... e-on-linux What Is the Linux Hosts File ? Bobby Borisov

/etc/hosts

127.0.0.1 localhost puppypcxyz12345 You can give any name here
192.168.1.1 pc2
192.168.1.2 pc3
192.168.1.3 pc4

0.0.0.0 https://www.google.com/?gws_rd=ssl
0.0.0.0 google.com
0.0.0.0 https://google.com
0.0.0.0 https://www.google.com
0.0.0.0 youtube.com
0.0.0.0 https://youtube.com
0.0.0.0 https://www.youtube.com
0.0.0.0 142.251.214.142
0.0.0.0 142.251.46.206
0.0.0.0 2607:f8b0:4005:814::200e
0.0.0.0 2607:f8b0:4005:80f::200e
0.0.0.0 ns1.google.com
0.0.0.0 ns2.google.com
0.0.0.0 ns4.google.com
0.0.0.0 ns3.google.com

It's ok if you save the changes in the hosts file
When you save the file, it will not access yutubgoogle sites again.

To find the IP address of any sites:
https://www.nslookup.io
https://www.ipvoid.com/find-website-ip

Always updated blacklist that you can block and relax your device:
https://github.com/StevenBlack/hosts
https://github.com/StevenBlack/hosts/releases
https://github.com/jerryn70/GoodbyeAds/releases

You can also add only IP addresses to the hosts file, your system will be more responsive and block faster.
You cannot make similar settings on mobile phones because the software is embedded. Rooting is required to access the hosts file on Android phones. Instead of constantly buying a mobile phone, you can buy a Sony Vaio P series pocket PC, it is small enough to fit in your pocket.

It's a little beast, you can install any version of Puppy Linux
https://duckduckgo.com/?t=ffab&q=Sony+V ... &ia=images
https://en.wikipedia.org/wiki/Sony_Vaio_P_series

A quality site where you can make audio and video calls without needing a social media application as long as the browser is up to date.
https://meet.jit.si
https://jitsi.org

Last edited by sucuklu yumurta on Tue Jul 02, 2024 4:07 pm, edited 6 times in total.

Acer Aspire One AO751h Netbook Intel Atom CPU Z520 1.33 GHz:1-1 core 2 GB+2 GB Swap SSD. Sony 5200 mAh: BullseyePup 9.1.0 Lite on Kingston SSD Frugal
Acer Aspire 3 A315-58-34HD 8 GB DDR4 4.10 GHz Intel Core i3-1115G4 CPU 2-4 128 GB SSD: BookwormPup64

d-pupp
Posts: 338
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 190 times
Been thanked: 52 times

Re: Example of completely blocking the website: Puppy Linux hosts

Post by d-pupp »

@sucuklu yumurta
Just an fyi. In the menu > internet > Pup-Advert-Blocker
Does a similar thing.

Post Reply

Return to “Tips & Tweaks”