Javascript validation functions in pages generated from ASP could be 'by-passed' by user by saving the ASP page and removing the Javascript validation and then submitting from form.
I would like to prevent that happening (possibly ) by examing the Request object. But I don't have any luck with figuring out whether the request came from or c:\hackedpage.html
I tried looking at
The following always return the server's host name
Request.ServerVariables("SERVER_NAME"
The following always return the path on server
Request.ServerVariables("SCRIPT_NAME"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Request.ServerVariables("PATH_INFO"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
The following always return the current ASP's path on server (i.e. c:\inetpub\wwwroot\....)
Request.ServerVariables("PATH_TRANSLATED"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
The following always return empty string/i]
Request.ServerVariables("QUERY_STRING"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Request.ServerVariables("REMOTE_USER"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Request.ServerVariables("PATH"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Any help would be appreciated.
I would like to prevent that happening (possibly ) by examing the Request object. But I don't have any luck with figuring out whether the request came from or c:\hackedpage.html
I tried looking at
The following always return the server's host name
Request.ServerVariables("SERVER_NAME"
The following always return the path on server
Request.ServerVariables("SCRIPT_NAME"
Request.ServerVariables("PATH_INFO"
The following always return the current ASP's path on server (i.e. c:\inetpub\wwwroot\....)
Request.ServerVariables("PATH_TRANSLATED"
The following always return empty string/i]
Request.ServerVariables("QUERY_STRING"
Request.ServerVariables("REMOTE_USER"
Request.ServerVariables("PATH"
Any help would be appreciated.