Great Reviews!Need help setting up your website, installing Apache, PHP, MySQL, or PhpNuke?Need help customizing or designing scripts?Please contact me via the Contact Us option for further details and pricing.
Description:
When tricks like time-dependend content should happen, a lot of webmasters still use CGI scripts which do for instance redirects to specialized pages. How can it be done via mod_rewrite? Solution:
There are a lot of variables named TIME_xxx for rewrite conditions. In conjunction with the special lexicographic comparison patterns <STRING, >STRING and =STRING we can do time-dependend redirects:
Description:
How can we forbid a list of externally configured hosts from using our server?
Solution:
RewriteEngine on
RewriteMap hosts-deny txt:/path/to/hosts.deny
RewriteCond ${hosts-deny:%{REMOTE_HOST}|NOT-FOUND} !=NOT-FOUND [OR]
RewriteCond ${hosts-deny:%{REMOTE_ADDR}|NOT-FOUND} !=NOT-FOUND
RewriteRule ^/.* - [F]
Posted by Raven on Sunday, October 10, 2004 @ 01:50:26 EDT (1720 reads) ( | Score: 0)