A
Aaron
i would like to make a page thats only accessible from a certain website.
so i did this
if
(HttpContext.Current.Request.UrlReferrer.ToString().Trim().StartsWith(http:/
/www.approveddomain.com))
method();//access page
else
accessdenied();
--------------
did i do this right? i know there are programs out there that can spoof http
referrer would my code still work?
ie.spoofed url
http://www.hacker.com/@http://www.approveddomain.com
i need to make sure my code works 100% of the time.
Thanks
Aaron
so i did this
if
(HttpContext.Current.Request.UrlReferrer.ToString().Trim().StartsWith(http:/
/www.approveddomain.com))
method();//access page
else
accessdenied();
--------------
did i do this right? i know there are programs out there that can spoof http
referrer would my code still work?
ie.spoofed url
http://www.hacker.com/@http://www.approveddomain.com
i need to make sure my code works 100% of the time.
Thanks
Aaron