ASP, IIS and IP Addresses

ASP, IIS and IP Addresses
Your IIS server logs always track the IP addresses of your visitors. But if you would like to show them to your users on the fly, here's how you do it.

The command in ASP is

Request.ServerVariables("REMOTE_ADDR")

so to assign this to a variable to then display or log in your database, you would use -

IPAdd = Request.ServerVariables("REMOTE_ADDR")

You can use this to make it more obvious to a user that is violating security that you know who he or she is. Again, your IIS logs always keep a permanent records of your visitors, so you know from them exactly who did what, and when. But to give the hacker proof that you are tracking this information, it helps to display it on the screen in your trapping code.

You can also use the IP address for security clearance, or to track exactly where newsletter subscriptions came from. That helps in the case of a malicious user signing up people for newsletters without their permission.

It's a sad fact of life that people with few morals exist in the world, people who enjoy destroying what others spend years to create. By making it obvious to hackers that you are tracking their information, you might encourage them to move on to another way of spending their time.

Hacking is a federal offense, and carries penalties of fines from $500 up through prison terms. If you are hacked, contact the appropriate authorities. The hacker you set free might be the hacker that destroys someone else's site tomorrow.

Introduction to ASP Ebook

Download this ebook to get everything you need to know about learning ASP - from a step by step tutorial to function lists, sample code, common errors and solutions, and much more! 101 pages.




RSS
Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map





Content copyright © 2023 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact Lisa Shea for details.