Prevent file or directory access according to specified time periods Print

  • 59

Prevent viewing of all pictures of Fonzi during the midnight hour or any files during any time period by using this handy htaccess ruleset:

# prevent access during the midnight hour
RewriteCond %{TIME_HOUR} ^12$
RewriteRule ^.*$ - [F,L]

# prevent access throughout the afternoon
RewriteCond %{TIME_HOUR} ^(12|13|14|15)$
RewriteRule ^.*$ - [F,L]


Was this answer helpful?

« Back

Powered by WHMCompleteSolution