Block youtube

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
dietergw
DD-WRT Novice


Joined: 01 Nov 2014
Posts: 1

PostPosted: Sat Mar 12, 2016 11:28    Post subject: Block youtube Reply with quote
Hi

I have been trying to block youtube as my kid loves to spend all day watching it from various devices. I have used the access restrictions settings and added blocked services as specified. Ive tried mac addresses ip addresses etc but i can still access youtube from all devices on the network. Is this still not fixed or am i missing something?

Thanks

D

Firmware: DD-WRT v3.0-r29147 std
Sponsor
Acumen
DD-WRT User


Joined: 15 Nov 2014
Posts: 221

PostPosted: Mon Mar 14, 2016 17:59    Post subject: Reply with quote
I believe you cannot use 'Website Blocking by URL Address' or 'Website Blocking by Keyword' for YouTube and other sites that use HTTPS, because of the encryption.

I have not tested it, but perhaps you can (permanent) block YouTube by using 'DNSMasq for DNS' and create custom entries for all YouTube urls.

_________________
Netgear WNDR4300v1 DD-WRT v3.0 BS r29837 | Netgear R6400 DD-WRT v3.0 KB r33525M | Tickets: 5429
IPv4 & IPv6-PD | ProFTP & Samba to USB thumb | DNSMasq DHCPv6 | Pi-Hole on RasPi

Found a bug, report it so the it can be fixed: http://svn.dd-wrt.com/
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6446
Location: UK, London, just across the river..

PostPosted: Mon Mar 14, 2016 18:05    Post subject: Reply with quote
or you can revert to build where Access Restrictions are working but you will miss the new features and updates...
try 27506 for example

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
bdg2
DD-WRT User


Joined: 18 Apr 2013
Posts: 319

PostPosted: Mon Mar 14, 2016 23:36    Post subject: Reply with quote
Alozaros wrote:
or you can revert to build where Access Restrictions are working but you will miss the new features and updates...
try 27506 for example


No, youtube is https:
There is no way it can be blocked other than by IP address.
It's IMPOSSIBLE.
Lusitano
DD-WRT User


Joined: 25 Jun 2014
Posts: 142
Location: São Paulo - Brazil

PostPosted: Tue Mar 15, 2016 2:52    Post subject: Reply with quote
Acumen wrote:
I believe you cannot use 'Website Blocking by URL Address' or 'Website Blocking by Keyword' for YouTube and other sites that use HTTPS, because of the encryption.

I have not tested it, but perhaps you can (permanent) block YouTube by using 'DNSMasq for DNS' and create custom entries for all YouTube urls.

How to block by 'DNSMasq for DNS' ? thx.
bdg2
DD-WRT User


Joined: 18 Apr 2013
Posts: 319

PostPosted: Tue Mar 15, 2016 3:29    Post subject: Reply with quote
Lusitano wrote:
How to block by 'DNSMasq for DNS' ? thx.


you could just define www.youtube.com and youtube.com as 127.0.0.1 (or whatever you wanted)

But I've no idea if that would block embedded youtube videos on other sites or youtube apps on phones and tablets. I suspect it wouldn't.
tdiguy
DD-WRT User


Joined: 20 Apr 2010
Posts: 203

PostPosted: Tue Mar 15, 2016 3:29    Post subject: Reply with quote
It might be easiest to use opendns.com
Create an account with opendns.com and you can block youtube.com you will just have to be sure to use the opendns servers. When you sign up for an account it will tell you about doing that.
tdiguy
DD-WRT User


Joined: 20 Apr 2010
Posts: 203

PostPosted: Tue Mar 15, 2016 3:30    Post subject: Reply with quote
Only caviat to this is that if on their device they specify a different dns server other than the opendns server they will go around this measure.
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Tue Mar 15, 2016 6:53    Post subject: Reply with quote
He can use ddwrt feature callled "Forced DNS redirection"...
bdg2
DD-WRT User


Joined: 18 Apr 2013
Posts: 319

PostPosted: Tue Mar 15, 2016 13:44    Post subject: Reply with quote
Mile-Lile wrote:
He can use ddwrt feature callled "Forced DNS redirection"...


If all you want to block is all the domains associated with youtube does using OpenDNS offer any advantage over doing it in the router?
zdenekji
DD-WRT Novice


Joined: 05 Feb 2010
Posts: 16

PostPosted: Mon Aug 29, 2016 18:50    Post subject: Reply with quote
tdiguy wrote:
It might be easiest to use opendns.com
Create an account with opendns.com and you can block youtube.com you will just have to be sure to use the opendns servers. When you sign up for an account it will tell you about doing that.
Horrible idea. OpenDNS inserts an ad for every domain not found request. It breaks some programs too. You need to do it in the router.
Then again, Youtube can be a great source of knowledge, plus it already has anti-porn system in place. Even if a small fraction of the videos teaches the kid something, it will be worth it.
Perhaps you could work on your parenting too, offer some outdoor activity. It's not the kid's fault, the parent needs to provide fruit for the mind.
As for the technical point of view, I would still go with the IP blocking because DNS can be circumvented and capturing all port 53 connections seems a bit overkill, if not useless.
ncalsurfer
DD-WRT Novice


Joined: 20 Jul 2007
Posts: 2

PostPosted: Tue Oct 24, 2017 18:50    Post subject: Reply with quote
Let add a little color to this scenario as I've been facing this problem (trying to block youtube and other sites). (And instead of blaming the OPs parenting skills, maybe try answering the question!)

My children require internet access to use online classrooms as REQUIRED by their school. I can't always be home in the afternoons to police them so they end up wasting a lot of time on YouTube, Netflix, etc. All this to say blocking all internet is NOT an acceptable answer.

I understand you can't block https traffic with URL filtering or Access Restrictions. Yes I understand the limitations of DNS and other solutions which can "easily" be circumvented. However, I would rather "catch" my children and find out their tech savvy enough to defeat my solution, causing us both to grow, than do nothing at all.

What we parents are looking for is a relatively easy way to block all social media and video streaming websites from the hours of 3PM to 9PM on weekdays. I'm currently looking at setting up a Pi running Squid, but this is still way too advanced for most parents.

I'd be really interested in hearing some potential solutions which could be applicable to the custom firmware on our routers.

Thank in advance!
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6446
Location: UK, London, just across the river..

PostPosted: Tue Oct 24, 2017 19:48    Post subject: Reply with quote
ncalsurfer usually those solutions cost money, writing the script for that cost money and time too...especially with requirements to meet...like time and
web sites to filter...

there are single options to filter sites via iptables or DNSMasq but it's not enough for complex blocking


iptables -t filter -I FORWARD -s {IP of your local host you want to block} -p tcp -d {IP of facebook} -j DROP

or additional DNSmasq options

address=/www.namecheap.com/0.0.0.0

so far ive seen a bloke who manage to write a script for Whatsapp but it was not an easy task..it's here in the forum and i believe you can adapt it for your needs and create a small cronjob script to turn it on and off at your time...

Personally i haven't tried this script for something else but for Whatsapp it was working ....

look here: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=304987&sid=5b069144112b96283f87de05b7613906

Good Luck

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
Gameman Advanced Kid
DD-WRT Guru


Joined: 18 Nov 2012
Posts: 1158

PostPosted: Wed Oct 25, 2017 3:07    Post subject: Reply with quote
I am asking this out of pure curiosity, but have you considered taking away some of their valuables?

Maybe showing them a slice of reality? Like how much the internet your paying for costs, what happens if they choose not study, etc?

just askin'

that is all.

_________________
For people who are new to the dd-wrt forums >> http://www.catb.org/~esr/faqs/smart-questions.html#rtfm

barryware wrote:
It takes a "community" to raise a router..


Internet Connection 1
Some Techicolor modem > Linksys WRT3200ACM

Internet connection 2
Ubiquiti Powerbeam Gen 2 > Netgear R9000

Official (but not really) dd-wrt General Discussion element/matrix chat

https://matrix.to/#/#dd-wrt-private-non-offical:matrix.org
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum