I used the same in past with mikrotik web.proxy, Here is an workaround . . .
For example you have created an rule in web.proxy to block Facebook, (BLOCK-FB rule) which blocks Face-book site , example below
/ip proxy access
add action=deny comment=fb disabled=no dst-host=www.facebook.com
(Don’t forget the ‘comments’ in rule) and Now you want to Allow access to FB from 2:00 pm till 3:00 pm,
You have to create two Scripts, one that will disable the BLOCK-FB rule,
and second that will enable the BLOCK-FB rule.
disable-fb-rule Script
/ip proxy access disable [find comment="fb"]
enable-fb-rule Script
/ip proxy access enable [find comment="fb"]
OR the cli code.
/system script
add name=disable-fb-rule policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source=\
"/ip proxy access disable [find comment=\"fb\"]"
add name=enable-fb-rule policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source=\
"/ip proxy access enable [find comment=\"fb\"]"
Now add schedule to Run “disable-fb-rule” to run at 2:00 pm Daily,
Add another schedule to Run “enable-fb-rule” to run at 3:00 pm Daily,
Code:
/system scheduler
add comment="" disabled=no interval=1d name="Disable fb rle schedule" on-event="" \
start-date=dec/03/2010 start-time=02:00:00
add comment="" disabled=no interval=1d name="Enable fb rle schedule" on-event="" \
start-date=dec/03/2010 start-time=03:00:00
Hope this will help, Or maybe some one else can came up with some better idea.