Block Porn Sites and Facebook With Mikrotik


The challenge for the admin in the office to block sites that have nothing to do with work. Alias porn sites and social networking sites, which disturb the performance. We were asked to Block Porn Sites and Facebook during office hours. I immediately thought to use Mikrotik just that simple.

I might as well share it here aja mikrotik tutorials, to the steps I am not starting from scratch due to installing and setting as a gateway proxy, as well as transparent proxy can be found here.

The assumption mikrotik already can walk, and also used as a web proxy. Following steps:

• Block up, porn sites, youtube and sites that contain those words. Enter the following script in a terminal proxy:
ip web-proxy access
add dst-port=80 url="facebook.com" action=deny comment="satu" disabled=no
add dst-port=80 url="*.facebook.com" action=deny comment="dua" disabled=no
add dst-port=80 url="*porn*.com" action=deny comment="tiga" disabled=no
add dst-port=80 url="*sex*.com" action=deny comment="empat" disabled=no
add dst-port=80 url="*tube*.com" action=deny comment="lima" disabled=no
add dst-port=80 url="*porn*" action=deny comment="enam" disabled=no
add dst-port=80 url="*sex*" action=deny comment="tujuh" disabled=no

• Creating a Scheduler at 08.00 - 15.00. (HOURS OF WORK)
/ system script
add name=jam-allow policy=policy=ftp,reboot,read,write,policy,test,winbox,password source={
/ip web-proxy access set [/ip web-proxy access find comment=satu] disable=yes
/ip web-proxy access set [/ip web-proxy access find comment=dua] disable=yes
/ip web-proxy access set [/ip web-proxy access find comment=tiga] disable=yes
/ip web-proxy access set [/ip web-proxy access find comment=empat] disable=yes
/ip web-proxy access set [/ip web-proxy access find comment=lima] disable=yes
/ip web-proxy access set [/ip web-proxy access find comment=enam] disable=yes
/ip web-proxy access set [/ip web-proxy access find comment=tujuh] disable=yes}
/ system scheduler
add name="schedule-jam-allow" on-event=jam-allow start-date=jan/01/1970 start-time=16:00:00 interval=1d comment="" disabled=no

• Creating a Scheduler in hours 15:00 to 08:00
/ system script
add name=jam-deny policy=policy=ftp,reboot,read,write,policy,test,winbox,password source={
/ip web-proxy access set [/ip web-proxy access find comment=satu] disable=no
/ip web-proxy access set [/ip web-proxy access find comment=dua] disable=no
/ip web-proxy access set [/ip web-proxy access find comment=tiga] disable=no
/ip web-proxy access set [/ip web-proxy access find comment=empat] disable=no
/ip web-proxy access set [/ip web-proxy access find comment=lima] disable=no
/ip web-proxy access set [/ip web-proxy access find comment=enam] disable=no
/ip web-proxy access set [/ip web-proxy access find comment=tujuh] disable=no}

/ system scheduler
add name="schedule-jam-allow" on-event=jam-deny start-date=jan/01/1970 start-time=08:00:00 interval=1d comment="" disabled=no

So little tricks on how to Block Porn Site and up Wear Mikrotik. Hope can help to reduce access to porn sites and the corruption of time.

Artikel Terkait

Block Porn Sites and Facebook With Mikrotik
4/ 5
Oleh

Berlangganan

Suka dengan artikel di atas? Silakan berlangganan gratis via email

3 komentar

May 23, 2016 at 8:31 AM delete

Real Blacklists for Mikrotik RouterOS are available from Squidblacklist.org

http://www.squidblacklist.org/downloads/squid-facebook.acl

http://www.squidblacklist.org/downloads/squidblacklists/tik/tik-porn.tar.gz

Reply
avatar