Community discussions

MikroTik App
 
oo0026
just joined
Topic Author
Posts: 2
Joined: Fri Mar 13, 2009 12:42 am

how to block website

Fri Mar 13, 2009 12:53 am

hi every body

i have RB 433AH
i wont to know how to block :( websites

thank you inadvance
 
QpoX
Member
Member
Posts: 385
Joined: Mon Mar 24, 2008 7:42 pm
Location: Lemvig, Denmark

Re: how to block website

Fri Mar 13, 2009 1:26 am

You can block an URL by using the Proxyserver in RouterOS...
Or just block the IP's of a website by using the firewall filter in RouterOS, and just drop trafic to that IP.
 
sanjeev
Frequent Visitor
Frequent Visitor
Posts: 87
Joined: Mon Oct 06, 2008 7:45 am

Re: how to block website

Fri Mar 13, 2009 8:15 am

create addresslist of sites that you want to block.
now add dst-nat where dst-addresslist is the addresslist of the block sites and and in action choose dst-nat in, to address put 127.0.0.1
;;; dstnat unwanted sites
chain=dstnat action=dst-nat to-addresses=127.0.0.1 
dst-address-list=restricted sites
or you can also do that using the firewall filter in RouterOS as mentioned by QpoX
or you can also do via webproxy
hth
 
oo0026
just joined
Topic Author
Posts: 2
Joined: Fri Mar 13, 2009 12:42 am

Re: how to block website

Mon Mar 16, 2009 12:31 pm

thank you for your replay friends
but i wont the proxy blocking
but could you kindly show me the steps with photo

Best Regards
 
User avatar
taglio
Frequent Visitor
Frequent Visitor
Posts: 99
Joined: Wed Nov 12, 2008 4:55 pm
Location: Redama, Barcelona, Spain
Contact:

Re: how to block website

Mon Mar 16, 2009 12:48 pm

[toor@extreme] /ip proxy access> export
# mar/16/2009 11:44:07 by RouterOS 3.20
# software id = 4H1M-LTT
#
/ip proxy access
add action=deny comment="" disabled=no dst-host=*porn*
add action=deny comment="" disabled=no dst-host=*sex*
add action=deny comment="" disabled=no dst-host=*xxx*
add action=deny comment="" disabled=no path=*porn*
add action=deny comment="" disabled=no dst-host=!*badoo* path=*sex*
add action=deny comment="" disabled=no path=*xxx*
[toor@extreme] /ip proxy access>

http://www.mikrotik.com/testdocs/ros/3. ... ent.php#.4 --> here you have explanetion of the sintax.

Remember that you have to do setup of the webproxy. [and trasparent mode if you want]
 
User avatar
dunga
Member Candidate
Member Candidate
Posts: 254
Joined: Fri Jan 23, 2009 9:51 am
Location: Nigeria

Re: how to block website

Tue Nov 08, 2011 8:37 pm

After blocking the porn, sex sites in web proxy as indicated, i want a situation where anyone dat visits the forbidden site or blocked sites, it will display a custom message to the person.

ERROR: Forbidden

While trying to retrieve the URL http://www.google.com/search?q=xxx&ie=u ... =firefox-a:

* Access Denied.

Instead of displaying above, it will display like, please dont try such sits here, they will not open
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: how to block website

Tue Nov 08, 2011 8:40 pm

http://wiki.mikrotik.com/wiki/Manual:IP ... ccess_List
redirect-to (string; Default: ) In case access is denied by this rule, the user shall be redirected to the URL specified here
 
User avatar
dunga
Member Candidate
Member Candidate
Posts: 254
Joined: Fri Jan 23, 2009 9:51 am
Location: Nigeria

Re: how to block website

Thu Nov 10, 2011 10:35 am

please dont try such sits here, they will not open
Thanks fewi for your response,
are u saying that if i just put this string "please dont try such sites here, they will not open. Thanks" in the redirect-to , it will display it as I put it there.

I need at least a best option to achieve this. Fewi, You can pm at obinna4god@yahoo.com so that I can ask you some other things are relate to MT.

Thanks
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

how to block website

Thu Nov 10, 2011 2:04 pm

No. As the manual clearly states you put a URL there. A URL is the kind of thing you would type into your browser address bar.

So the steps are:
1. Procure web server
2. Make website that displays whatever you want it to
3. Figure out URL to get to that website you created
4. Drop URL into proxy configuration
 
User avatar
dunga
Member Candidate
Member Candidate
Posts: 254
Joined: Fri Jan 23, 2009 9:51 am
Location: Nigeria

Re: how to block website

Thu Nov 10, 2011 2:21 pm

Thanks,
As sson as i get it will try to implement it
 
nmthaker
Member Candidate
Member Candidate
Posts: 145
Joined: Wed Jan 05, 2011 6:10 am

Re: how to block website

Sun Nov 13, 2011 4:09 pm

Hi,

I want to block the Porn Sites and other Ports then 80 only for hotspot users, can any one suggest how it is possible?? The same user id and password sholuld require to work when they connect with PPPoE Dialer and allow all website also, suggest how can we impliment the same


Nishit
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: how to block website

Sun Nov 13, 2011 4:12 pm

Blocking lots of sites via the proxy is unfeasible.

Use OpenDNS for DNS, and set up the account to not permit adult sites.

Then destination NAT all Hotspot DNS traffic to OpenDNS, and let PPPoE users use 'full view' DNS servers so they have access to everything.
 
nmthaker
Member Candidate
Member Candidate
Posts: 145
Joined: Wed Jan 05, 2011 6:10 am

Re: how to block website

Sun Nov 13, 2011 4:28 pm

Hi,

I created my open dns account and done require configuration, can you suggest how can i configure on Mikoritk.

Who is online

Users browsing this forum: AtomikRoach, mszru and 45 guests