Posted by Gordan on 06/16/05 14:43
Hi,
here's my problem. On my pages I have URL souch as these
"page.php?id=2&subpage=3¶m=65". For security reasons I would like to add
another parameter. It would be created like this
md5($param1.$param2.$some_constant). I would then add that MD5 string to my URL
and stop users from altering URL manually.
I would like PHP to rewrite all my URLs in a page adding this string to each
URL. I thought that I can pass a custom function to the session URL rewriting
but I cant it just adds the session ID. I know about
output_add_rewrite_var('var', 'value'); but the $value is fixed and in my case
it should depend on the specific URL being rewritten.
I know I could cache all my output and then write a regular expression to
rewrite URLs but that just seems slow and wrong :-)
any help is highly appreciated
gordan
[Back to original message]
|