Skip to main content

How to Block Videos from Loading in Youtube Using TP-Link Router

 Make it look like a site error!
We have number of computers at home. To be able to connect all the PCs to the internet, I network them. I bought a 16-ports Switch/Hub and a TP-Link router. We only have a 384kbps internet connection and when everybody in the family are connected to youtube, I could barely access facebook. When I tried to block Youtube, they were complaining that they couldn't access it anymore.

Today, I realized that you can block videos from loading without blocking the site. All you need to do is to block the video addresses directly. It will appear like there is a problem with Youtube without their knowledge that you have block it.

Here's what I did. Follow the steps carefully.

Step 1: Login to your TP-Link Admin

Default Address: 192.168.1.1
Default Username: admin
Default Password: admin

Step 2: Add New Target Setting

In this section, we are going to define what website to block. In our case, we will block not the homepage of Youtube, only the videos with its player will load.

  • Go to Access Control -> Target
  • Add New Target Setting
  • Change Mode: Domain Name
  • Target Description: Youtube
  • Domain Name: c.youtube.com
Step 3: Add New Host Setting

In this section, we are going to define what local computer will be affected with the blocking.

  • Go to Access Control -> Host
  • Add New Host Setting
  • Mode: IP Address
  • Host Description: All Computers
  • LAN IP Address: 192.168.1.100 - 192.168.1.199

Step 4: Add New Rule

In this section, we will define the connection the target to the host.


  • Go to Access Control -> Rule
  • Add New Rule
  • Rule Name: Youtube Block
  • Host: All Computers
  • Target: Youtube
  • Schedule: Anytime
  • Action: Deny
  • Status: Enabled
Step 5: Enable Access Control 

Of course, to make sure that this will all work, we have to check that our access control is enabled and check all the other settings are configured accordingly.

  • Enable Internet Access Control should be checked
  • Default Filter Policy should be Allow
  • Our `Youtube Block` rule should be on the list. 
  • Very Important: DON'T FORGET TO CLICK SAVE!
Youtube have a lot of cache servers and they load at least 4 video sources when try to play a video but blocking the cache servers are made easy since all you have to do is to block the root subdomain which is c.youtube.com and all the other cache servers will be blocked.

You can also experiment on other video streaming sites.

Comments

Popular posts from this blog

Bootstrap 3.3.5 Offline Guide - Chrome Extension

A made-easy offline documentation of Bootstrap 3.3.x for Web designers and Web developers.

This is an offline version of Bootstrap 3 documentation website. It is made-easy for users to navigate its contents and you can browse it on a separate tab if you want.

Changelog:
v3.3.5.4 - Improved Navigation
v3.3.5.2 - Added Options Page
v3.3.5.1 - Added Topic Search on navbar
v3.3.5 - Updated to Bootstrap 3.3.5 - Added Topic Search
v1.2 - Updated Navigation

Install Extension

Installing KOHA on Ubuntu 14.04

Update List
sudo apt-get update 

Install Apache 2 
sudo apt-get install apache2
sudo a2enmod rewrite
sudo a2enmod cgi
sudo a2enmod deflate
sudo service apache2 restart

Install MYSQL 
sudo apt-get install mysql-server
sudo mysql_install_db
sudo mysql_secure_installation

Add KOHA repository
sudo nano /etc/apt/sources.list.d/koha.list

type then save
deb http://debian.koha-community.org/koha oldstable main

Download KOHA Apt-key
wget http://debian.koha-community.org/koha/gpg.asc

Install Key
sudo apt-key add gpg.asc

Update List
sudo apt-get update 

Install KOHA
sudo apt-get install koha-common 

If error found:
Errors were encountered while processing: libapache2-mpm-itk apache2-mpm-itk koha-commonE: Sub-process /usr/bin/dpkg returned an error code (1)

Apply this command:
sudo a2dismod mpm_event
sudo a2enmod mpm_prefork
sudo service apache2 restart
sudo apt-get install -f

Configure KOHA
sudo nano /etc/koha/koha-sites.conf
DOMAIN=".domain.name"
INTRAPORT="8080"

Create KOHA Instance
sudo koha-create --create-…