How to block a website ?
-
Hı all. İ need to block some website. Netflix, Instagram,disneyplus etc. I tried many thing but didnt work. Probably My bad. How can I do that basicly ?
-
The easiest way is to block the DNS resolution for it using a related AS number.
Like: https://docs.netgate.com/pfsense/en/latest/recipes/block-websites.html#using-dns -
@stephenw10 Instagram is tricky as they use CDNs. Really any of the above providers can be challenging.
Blocking using regex is covered in this latest post.
https://forum.netgate.com/topic/196318/i-cannot-block-instagram-thru-pfblockerng/3?_=1738971351081
-
@michmoor it worked but I have 10 computer. Do I have to go all client and apply ipconfig /flushdns ?
-
No. Most DNS has a pretty low TTL meaning that anything stored locally will be timed out without needing to manually flush it.
-
@cheleby said in How to block a website ?:
it worked but I have 10 computer. Do I have to go all client and apply ipconfig /flushdns ?
First solution : just wait. Every host name resolved will eventually time out, so need to be resolved again.
Second solution : locate the main power switch. Do what you have to do anyway at least ones a month : test the earth leak detector. If all is well, it will trip., the power goes off. This will power down de PCs also. When they reboot, the local DNS will be empty ;)
Third solution : Disable (power down) your local switch and access points. Device will have to re create the connection. This will also flush the stored DNS cache.
Fourth solution : no solution : go visit your PCs. Are they that far ? ^^ -
thank you all