create url based on a calculation

Fix it!!

Postby adamg » Thu Oct 18, 2001 12:50 pm

Is mod_rewrite capable of doing calculations. I want to restrict access to files based on a calculation made by a parameter passed in on the query string.
Posts: 1
Joined: Wed Oct 17, 2001 4:00 pm

Postby Brett » Sun Oct 21, 2001 9:39 pm

I don't think you can do this using mod_rewrite alone, unless you can come up with a way to express your calculation as a regular expression. On the other hand, you could use mod_rewrite to redirect the requests to a PHP script which would either deliver the desired document or an appropriate error message, depending on the results of whatever calculation you had in mind.
Posts: 82
Joined: Tue Jul 10, 2001 4:00 pm

Return to Security with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 1 guest