I am trying to limit access to sites like facebook.com during work hours. I have set up DNS to forward facebook.com requests to my web server. On my web server I used the following:
header( "HTTP/1.1 301 Moved Permanently" );
header( "Status: 301 Moved Permanently" );
header( "Location: http://www.monster.com/
//exit(0); // This is Optional but suggested, to avoid any accidental output
Can I make this only active between 9:30am and 1:00pm and then again from 2:00pm to 6:00pm?
So that during those hours users can get to facebook.com.