Page 1 of 1

how to block website

Posted: Fri Mar 13, 2009 12:53 am
by oo0026
hi every body

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

thank you inadvance

Re: how to block website

Posted: Fri Mar 13, 2009 1:26 am
by QpoX
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.

Re: how to block website

Posted: Fri Mar 13, 2009 8:15 am
by sanjeev
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

Re: how to block website

Posted: Mon Mar 16, 2009 12:31 pm
by oo0026
thank you for your replay friends
but i wont the proxy blocking
but could you kindly show me the steps with photo

Best Regards

Re: how to block website

Posted: Mon Mar 16, 2009 12:48 pm
by taglio
[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]

Re: how to block website

Posted: Tue Nov 08, 2011 8:37 pm
by dunga
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

Re: how to block website

Posted: Tue Nov 08, 2011 8:40 pm
by fewi
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

Re: how to block website

Posted: Thu Nov 10, 2011 10:35 am
by dunga
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

how to block website

Posted: Thu Nov 10, 2011 2:04 pm
by fewi
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

Re: how to block website

Posted: Thu Nov 10, 2011 2:21 pm
by dunga
Thanks,
As sson as i get it will try to implement it

Re: how to block website

Posted: Sun Nov 13, 2011 4:09 pm
by nmthaker
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

Re: how to block website

Posted: Sun Nov 13, 2011 4:12 pm
by fewi
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.

Re: how to block website

Posted: Sun Nov 13, 2011 4:28 pm
by nmthaker
Hi,

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