Created
December 10, 2015 13:11
-
-
Save gwarnants/75106ecfbf7d3eac902e to your computer and use it in GitHub Desktop.
Sample rewrite rule depending on server date/time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# more info : http://httpd.apache.org/docs/current/en/expr.html#vars | |
# deny access from monday to friday and between 9am to 6pm | |
RewriteCond %{TIME_WDAY} ^1|2|3|4|5$ | |
RewriteCond %{TIME_HOUR} ^0?9|10|11|12|13|14|15|16|17|18$ | |
RewriteRule ^nsfw\.html$ - [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment