Logging users’ e-mail addresses

Is there a way to log my users’ e-mail addresses using Java?

I thought of using a mailto form but the user would have to press a button, making this inconvenient and messy for me to access!

I am getting about four hits a day on a site that is not advertised and is really meant as a way for me to access my backed-up reports from school! I would like to see who is on my site and e-mail them to find out how they found it.

I also want to implement a warning informing users that their e-mail addresses are being logged. I know it can be done because I have been getting e-mail from sites that I have visited and I never sent them mail or clicked any buttons other than links. If you can assure me this is possible, and maybe send me the code, I would greatly appreciate it!

You cannot obtain a user’s e-mail address using Java applets,and that’s a good thing. Java’s security manager prevents appletsfrom querying system resources such as the user’s name or homedirectory. This is to prevent malicious applets from collectingthis data and abusing it for aan evil purpose like spoofinge-mail messages from the unsuspecting user’s computer systemand so forth. Java is not the right answer here.

Your Web server, on the other hand, has complete knowledge of who’sconnecting to the Web site to retrieve HTML files. So you could, for example, embed a CGI script reference in your HTML pages thatcollected that information and saved it in a file on your serversystem somewhere.

This is how several web page “hit” counterswork. It will tell you at least which systems are connectingto your Web site — but it won’t let you know the user’s e-mailaddress.

What you’ve seen on Web pages is probably done using some incarnationof CGI script backends, or they’ve used JavaScript. Unlike Java,JavaScript is not very strict about security (in fact it has somevery serious security flaws) and does allow the Web page to find outthings like the user’s e-mail address and then pass that informationto the Web server, where it can be saved for later use.

If you really want to try that (some would argue this is ahighly unethical thing to do) I suggest you look at JavaScript.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


The Latest

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS

homes in the real estate industry

Exploring the Latest Tech Trends Impacting the Real Estate Industry

The real estate industry is changing thanks to the newest technological advancements. These new developments — from blockchain and AI to virtual reality and 3D printing — are poised to change how we buy and sell homes. Real estate brokers, buyers, sellers, wholesale real estate professionals, fix and flippers, and beyond may