Community discussions

MikroTik App
 
khalid engineer
just joined
Topic Author
Posts: 17
Joined: Fri Jul 13, 2007 3:37 pm
Location: Iraq

i want to reject all sites except one site

Sat Aug 30, 2008 10:47 am

hi
I'm using mikrotik router and i want to reject all sites except one site .
is that possible
i want the rule please :)
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: i want to reject all sites except one site

Mon Sep 01, 2008 11:29 am

Yes it is possible.
One of the way to do it with firewall, first rule to accept traffic for this page, second rule to drop any other traffic.

If you want to set limits only for HTTP traffic, then use web-proxy;
- enable proxy;
- add NAT redirect rule for HTTP traffic to redirect it to router itself;
- use ip proxy access, allow one web-page and deny others.
 
khalid engineer
just joined
Topic Author
Posts: 17
Joined: Fri Jul 13, 2007 3:37 pm
Location: Iraq

Re: i want to reject all sites except one site

Fri Sep 05, 2008 10:38 am

thank you very much
i mean all sites that belong to the site that i want to allow it
For example if i want to except the site forum.mikrotik.com then i want to allow all sites belong to the forum of mikrotik like forum.mikrotik.com/viewtopic.php?f=9&t=26296 and all urls of forum.mikrotik.com
can any one give me a ready script for that
and thank you very much
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: i want to reject all sites except one site

Fri Sep 12, 2008 2:50 pm

forum.mikrotik.com should be enough to allow all pages from forum.mikrotik.com

If you want to drop from,
http://forum.mikrotik.com/some_bad_word_to_drop

then use dst-path option for it, to allow just add forum.mikrotik.com
 
sowobi
just joined
Posts: 3
Joined: Fri Dec 05, 2008 3:57 pm

Re: i want to reject all sites except one site

Thu Feb 19, 2009 1:00 pm

I want to reject everything (including sub-domains about a particular site. (the organisation has several subdomains).
Even from the answer given above, I cannot figure out what the given solution was as /ip firewall filter iput , etc does not accept domain names (only IP's). In my case I need to work with wild card domain name like *yoyo* as I want no access to anything- yoyo-anything. Please help as my client is beside himself about this *yoyo* site. Thanks.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: i want to reject all sites except one site

Fri Feb 20, 2009 10:43 am

/ip proxy access add dst-address=*yoyo

Who is online

Users browsing this forum: No registered users and 13 guests