Thursday 31 March 2005 10:47:01 am
I have dynamically calculated links with variables eg:
http://mysite.com/index.php/mysite/discountpage/(discount)/10
and I don't want the general public to hack into the discountpage page substituting their own discount (such as 99%). I do not think it is possible to use the URL translator to translate such dynamically constructed addresses. I need to pass the variable value, and the extened url seems to be the only way since there is no other means of conveying a variable value across templates. The only solution I have devised is to use an additional variable to convey an md5 hash of the variable values combined with some secret key and to check this in the destination page. It would be very difficult for a hacker to reverse engineer the md5 hashing. Is there a better way of making the transfer of variable values between templates hacker-proof?
|