PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 
Site Navigation

Home:

 
Donate o Meter
Help Keep Our Servers Online AND Our Services Free!
Make donations with PayPal!
Donat-o-Meter Stats
July´s Goal:  $400.00
Due Date:  Jul 31
Net Balance:  $67.07
Left to go:  $332.93
Donations
Doulos Jul-18
Tim Keaveny Jul-18
samgunner Jul-10
 
Please Link To Me!
 
Services Available
Quality PHP Web Host!

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.

Link to Me

RavenPHPScripts

RavenPHPScripts

There are more Link To Me icons here.
 
Site Info v2.2.2 ©
Your IP: 38.103.63.16

 Welcome, Anonymous
Nickname
Password
Security Code:
Security Code
Type Security Code:

· Register
· Lost Password
Server Date/Time
20 July 2008 11:26:41 EDT (GMT -4)
 
Verse of the Day
 
Apache Solutions - Time-Dependent Rewriting & Host Deny From 
Apache

These are from the Apache Mod Rewrite Guide. These are killer scripts in my estimation. Enjoy!!

- Time-Dependend Rewriting

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:

RewriteEngine on
RewriteCond %{TIME_HOUR}%{TIME_MIN} >0700
RewriteCond %{TIME_HOUR}%{TIME_MIN} <1900
RewriteRule ^foo.html$ foo.day.html
RewriteRule ^foo.html$ foo.night.html

- Host Deny Using External File

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 on Sunday, October 10, 2004 @ 01:50:26 EDT by Raven
 
Related Links
· More about Apache
· News by Raven


Most read story about Apache:
Apache Solutions - Time-Dependent Rewriting & Host Deny From

 
Article Rating
Average Score: 0
Votes: 0

Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad


 
Options

 Printer Friendly Page  Printer Friendly Page

 Send to a Friend  Send to a Friend

 

Re: Apache Solutions - Time-Dependent Rewriting & Host Deny From (Score: 1)
by beetraham (beetraham@ec-clan.org) on Sunday, October 10, 2004 @ 11:27:58 EDT
Not registered user
Marvellous!

At least to me, this opens up all new possibilities regarding *.htaccess* utilization being incorporated with "Google Tapped" PHP-Nuke Modules - i.e. timed control of PHP-Nuke Modules. This is awesome!


 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum