Allow access only to certain websites. Urgent problem

Hi,

I am balancing 8 ADSL lines with PCC in a RB493ah, but I am having some problems with some of them.

Thing is that constantly we are having problems with electricity, so 4 ADSL lines turns off constantly. What I want is that when that happens, only allow access to some websites such as hotmail, yahoo, gmail, facebook and some banking sites, so the little bandwidht available be used for importants things.

Is that possible? how can I achieve that goal?

hi

just run web proxy, and filter web sites using regular expressions..
http://wiki.mikrotik.com/wiki/How_to_make_transparent_web_proxy

regards

Ok, I´ll look at it, but can you or anyone else point me in the “reg exp” direction?

I have never work with it before, and I must say that I am completely ignorant in this theme

They aren’t trivial to explain or understand.
http://www.regular-expressions.info/tutorial.html is a good first start, and should be sufficient for getting that task done.
That page also links to books and resources, one of which is “Mastering Regular Expressions” by Friedl. That is way more in depth than you need, but hands down the best thing ever written on the topic and one of the best O’Reilly books ever published.