"Jawahar Rajan" <> wrote in message news:<o1PQa.233573$ .com>...
> All,
> 1) When using the QueryString of the request object the actual values are
> exposed to the viewer of the site and often user pickup on these values and
> start changing them . This can lead user to see data that they are not
> supposed to or even data that may be erroneous.
> Is there an easy way to encrypt the querystring values that get displayed on
> the location bar / other than not using querystring.
I try not to pass any variables through the querystring where possible
because people will mess with them. When I must I also pass a
checksum, this way I can tell if anyone has been tampering.
I use this code
http://www.planet-source-code.com/vb...txtCodeId=7219
so when I create the QS in ASP It goes...
<a href="something.asp?somekey=<%=myKey%>&somekeyCRC= <%=CalculateCRC(myKey)%>">
When I get to the target page I check the value against the CRC like
so
if (CalculateCRC(request.querystring("somekey")) <>
request.querystring("somekeyCRC")) then
response.redirect("naughtynaughty.asp")
end if
> 2) Can I use java script to disable the status bar, at the bottom of the
> page to not expose the URL's of various links on a page? (I know this is
> probably a JavaScript question.)
Yes you can. Add this code into your <a> tag
onMouseOver="(window.status='whatever you like');return true;"
onMouseOut="(window.status='');return true;"
> Any help or suggestions are always welcome.
Never eat yellow snow!