logo
g Text Version
Auto
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Society & Culture
Sports
Travel & Leisure
TV & Movies

dailyclick
Bored? Games!
Postcards
Astrology
Take a Quiz
Rate My Photo

new
Jokes & Riddles
Astronomy
Philosophy
Public Health
Canadian Culture


dailyclick
All times in EST

Full Schedule
g
g ASP Site
Editor Wanted
BellaOnline's ASP Editor

g

ASP, IIS and IP Addresses
Guest Author - Lisa Shea

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.

This site needs an editor - click to learn more!

RSS | Previous Features | Site Map


Content copyright © 2008 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 BellaOnline Administration for details.

Digg! g delicious Save to Del.icio.us

g


For FREE email updates, subscribe to the ASP Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor

g features
Best uses for RSS

RSS and its future.

Force Download Dialog box with ASP

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Driving Amount
Much more
Slightly more
Slightly less
Much less

g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2008 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor