| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Aug 2003 Location: Ontario, Canada
Posts: 98
![]() | Sensitive Information from the User in ASP! Ever wanted the User's IP, or other things you shouldn't be looking at? You've come to the right place! ASP can find all kinds of secret information from the User, you just need to look at the HTTP headers! You can insert the following information into any ASP variable: User's Browser Information: Request.ServerVariables("http_user_agent") User's IP: Request.ServerVariables("remote_addr") DNS lookup of User's IP: Request.ServerVariables("remote_host") Method used to call the page: Request.ServerVariables("request_method") The server's Domain Name: Request.ServerVariables("server_name") The Server's Port: Request.ServerVariables("server.port") The Server's Softwar: Request.ServerVariables("server_software") Lots of information you can sneak away from them, huh ????: NamePros.com http://www.namepros.com/code/15116-sensitive-information-from-the-user-asp.html I attached an ASP File that has code to print out these items, remember that it must be tested online or on a Personal Web Server, you can't just open in Internet Explorer - That just doesn't work Happy Programming!
__________________ Yeah... I knew that. What? |
| |
| | #2 (permalink) |
| NP Maniacâ„¢ Join Date: Apr 2004 Location: Nottingham, UK
Posts: 820
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Or (just for reference) you can do it in PHP, for an example see this script (made by us): Download!
__________________ PHP/MySQL Development offered: PM me for a quote. 47ideas.com - my freelancing portfolio. |
| |