Koozali.org: home of the SME Server
Obsolete Releases => SME Server 9.x => Topic started by: johnt on August 16, 2015, 12:26:50 PM
-
Comrades,
I need to limit access to facebook/youtube in certain times during week days, and deny access for the rest of the times.
Example - access allowed during 12 midday to 2 pm daily, denied for the rest of day.
Currently using SME Server v9 and the built-in Squid proxy.
Thanks in advance.
-
johnt
You can create a domain in server manager Domain panel, eg facebook.com which resolves using the local DNS option (rather than Internet DNS servers) & points at your servers main (local) web site, so if users try to access facebook.com they get your main website.
You can create a cron job to issue a db command that will configure the "redirected" domain(s), & schedule that for 2pm.
You can create another cron job to issue another db command that deletes the redirected domain(s), & schedule that for 12 midday.
To get the appropriate command, create a domain in the Domains panel in server mananger, & then review the messages log file.
I do something similar in Dansguardian & it works fine.
-
take a look at this
http://wiki.contribs.org/WebFiltering
-
Thanks comrades.
Trying the mentioned solutions this weekend and will come back with results.
Cheers
John.