• MikroTik.com
  • RouterBOARD
  • User Meeting
  • Training
  • User Manual
  • Support
  • Downloads
  • Videos
Register |   * Login | HOME

View unanswered posts | View active topics

how to block website  Page 1 of 1
 [ 13 posts ]  Post new topic Reply to topic
  Print view Previous topic | Next topic 
Author Message
oo0026
 Post subject: how to block website
PostPosted: Fri Mar 13, 2009 12:53 am 
Offline
just joined

Joined: Fri Mar 13, 2009 12:42 am
Posts: 2
Karma: 0
hi every body

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

thank you inadvance


Top
 Profile  
 
QpoX
 Post subject: Re: how to block website
PostPosted: Fri Mar 13, 2009 1:26 am 
Offline
Member
Member

Joined: Mon Mar 24, 2008 7:42 pm
Posts: 387
Karma: 0

Location: Lemvig, Denmark
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.


Top
 Profile  
 
sanjeev
 Post subject: Re: how to block website
PostPosted: Fri Mar 13, 2009 8:15 am 
Offline
Frequent Visitor
Frequent Visitor

Joined: Mon Oct 06, 2008 6:45 am
Posts: 87
Karma: 0
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
Code:
;;; 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


Top
 Profile  
 
oo0026
 Post subject: Re: how to block website
PostPosted: Mon Mar 16, 2009 12:31 pm 
Offline
just joined

Joined: Fri Mar 13, 2009 12:42 am
Posts: 2
Karma: 0
thank you for your replay friends
but i wont the proxy blocking
but could you kindly show me the steps with photo

Best Regards


Top
 Profile  
 
taglio
 Post subject: Re: how to block website
PostPosted: Mon Mar 16, 2009 12:48 pm 
Offline
Frequent Visitor
Frequent Visitor
User avatar

Joined: Wed Nov 12, 2008 4:55 pm
Posts: 97
Karma: 1

Location: 34T, Barcelona, Spain
[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]

_________________
.mhavoc world


Top
 Profile  
 
dunga
 Post subject: Re: how to block website
PostPosted: Tue Nov 08, 2011 8:37 pm 
Offline
Member Candidate
Member Candidate
User avatar

Joined: Fri Jan 23, 2009 9:51 am
Posts: 198
Karma: 0

Location: Owerri, Nigeria
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


Top
 Profile  
 
fewi
 Post subject: Re: how to block website
PostPosted: Tue Nov 08, 2011 8:40 pm 
Offline
Forum Guru
Forum Guru

Joined: Tue Aug 11, 2009 2:19 am
Posts: 7737
Karma: 327
http://wiki.mikrotik.com/wiki/Manual:IP/Proxy#Access_List
Quote:
redirect-to (string; Default: ) In case access is denied by this rule, the user shall be redirected to the URL specified here

_________________
Specific answers require specific questions. When in doubt, post the output of "/ip address print detail", "/ip route print detail", "/interface print detail", "/ip firewall export", and an accurate network diagram.


Top
 Profile  
 
dunga
 Post subject: Re: how to block website
PostPosted: Thu Nov 10, 2011 10:35 am 
Offline
Member Candidate
Member Candidate
User avatar

Joined: Fri Jan 23, 2009 9:51 am
Posts: 198
Karma: 0

Location: Owerri, Nigeria
fewi wrote:
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


Top
 Profile  
 
fewi
 Post subject: how to block website
PostPosted: Thu Nov 10, 2011 2:04 pm 
Offline
Forum Guru
Forum Guru

Joined: Tue Aug 11, 2009 2:19 am
Posts: 7737
Karma: 327
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

_________________
Specific answers require specific questions. When in doubt, post the output of "/ip address print detail", "/ip route print detail", "/interface print detail", "/ip firewall export", and an accurate network diagram.


Top
 Profile  
 
dunga
 Post subject: Re: how to block website
PostPosted: Thu Nov 10, 2011 2:21 pm 
Offline
Member Candidate
Member Candidate
User avatar

Joined: Fri Jan 23, 2009 9:51 am
Posts: 198
Karma: 0

Location: Owerri, Nigeria
Thanks,
As sson as i get it will try to implement it


Top
 Profile  
 
nmthaker
 Post subject: Re: how to block website
PostPosted: Sun Nov 13, 2011 4:09 pm 
Offline
Member Candidate
Member Candidate

Joined: Wed Jan 05, 2011 6:10 am
Posts: 130
Karma: 0
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


Top
 Profile  
 
fewi
 Post subject: Re: how to block website
PostPosted: Sun Nov 13, 2011 4:12 pm 
Offline
Forum Guru
Forum Guru

Joined: Tue Aug 11, 2009 2:19 am
Posts: 7737
Karma: 327
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.

_________________
Specific answers require specific questions. When in doubt, post the output of "/ip address print detail", "/ip route print detail", "/interface print detail", "/ip firewall export", and an accurate network diagram.


Top
 Profile  
 
nmthaker
 Post subject: Re: how to block website
PostPosted: Sun Nov 13, 2011 4:28 pm 
Offline
Member Candidate
Member Candidate

Joined: Wed Jan 05, 2011 6:10 am
Posts: 130
Karma: 0
Hi,

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 1 of 1
 [ 13 posts ] 

Board index » RouterOS » Beginner Basics

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 4 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Karma functions powered by Karma MOD © 2007, 2009 m157y