Application Control Time Schedule
Create an Application Control rule blocking all of the Facebook applications. Don't give it a name - that will cause WebAdmin to display the REF_*********x that you should use in the below. Note that that trick no longer works as helladotnet says below. If you name the rule "Facebook," teched's suggestion below to use the get_references command will likely show that the REF is REF_AppRulFacebook, so I've used that in my suggestion below.
Next is a trick that isn't supported, and won't be included in a configuration backup...
Add the following two lines to /etc/crontab-static for weekday (1-5) control:
0 12 * * 1-5 root /usr/local/bin/confd-client.plx change_object REF_AppRulFacebook status 1
0 13 * * 1-5 root /usr/local/bin/confd-client.plx change_object REF_AppRulFacebook status 0
Then, to get the lines into /etc/crontab, go to the 'Configuration' tab of 'Management >> Up2Date', change one of the intervals, [Apply], change it back and [Apply]. This change should survive everything but a reload from ISO.
Cheers - Bob
Changelog: 08-24-2015 Added title, "Note" at the top and new crontab paragraph; 02-26-2015 Thanks to teched for noticing my minutes/hours mistake and other suggestions for improvement
New member Harsh Kukreja asked me a question via PM. Since I don't answer questions for free there, here's his question that he asked me to post:
"After making changes I can't view the live logs for Application control. Please help how I can fix it."
Those instructions cannot affect logging. Try changing to a different browser or clearing your browser cache. Any luck with that?
Cheers - Bob