Scrambling URLS for dynamic data

Posted by ggonsalv on Stack Overflow See other posts from Stack Overflow or by ggonsalv
Published on 2010-03-31T02:41:48Z Indexed on 2010/03/31 3:13 UTC
Read the original article Hit count: 442

Filed under:
|
|

What is the best method to obfuscate the urls created in Dynamic Data?

eg \Products\List.aspx?ProductId=2 could become

\Products\List.aspx?x=UHJvZHVjdElkPTI=

where "ProductId=2" is base 64 encoded to prevent casual snooping on

\Products\List.aspx?ProductId=3

\Products\List.aspx?ProductId=4

etc...?

I will probably have to inherit from an existing object and override some function The question is which object and what function

GetActionPath of the Metamodel object seems interesting, but how does the DynamicRoute "{table}/{Action}.aspx" play in into it...

Right now on Asp.net 1.1 site I use an custom implementation of the following code. http://www.mvps.org/emorcillo/en/code/aspnet/qse.shtml It is HTTPModule that uses regular expression to rewrite all the querystrings and also with reflection changes the Querystring collection with decoded values.

So where is the hook to affect the change.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about encryption