I would like to block all websites except www.yahoo.com via Mikrotik IP web proxy but there is no script available for it. For example only www.yahoo.com will open and remain all websites be denied for all users.
If any body know about this script then please inform me with complete command line.
I shall be very thankful this kindness.
Regards
Zishan Rana
You don’t need a script for that, you said it yourself.
You can do that via webproxy.
The webproxy rules are executed in order, so first allow www.yahoo.com
and then block everything else.
Please let me know that how to restrict & allow web access to different Ip base users via web proxy for Example one user should have full access and 2nd one should have only one web access. Please help me in this case.
Dear Caci99!
Thanks for your help… But I`ve a problem, is that while blocking all websites except www.yahoo.com, there yahoo mail is not working. I also allow mail.yahoo.com and login.yahoo.com. but no response. Please help me again.
Keep in mind that rules in “access” are executed in order.
Be sure you have sorted the rules by their number.
You can check that by doing in terminal:
/ip proxy access print
I am not that good in proxy configuration, someone with better knowledge
about expressions can point you to the right direction. My self I would have tried
sth like this:
After you add the rules make sure the “allow rules” are above the “deny rule”
Notice the * character. That is an expression used in proxy configuration, meaning anything,
at least that’s how I know about it . So *mail.yahoo.com, would mean anything preceding mail.yahoo.com plus mail.yahoo.com, like for example y.y.mail.yahoo.com