Friday, April 2, 2010

.htaccess : block access to files during certain hours of the day

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# If the hour is 16 (4 PM) Then deny all access
RewriteCond %{TIME_HOUR} ^16$
RewriteRule ^.*$ - [F,L]

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home