Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · ASP.NET Newsletter Application · Web Hosting Plans · Faisal Khan's Blog · Contact
Search Stardeveloper.com
Newsletter
Enter your email address to receive full length articles at Stardeveloper:


Article Categories
.NET  .NET
  ASP (16)
  ASP.NET (43)
  ADO (16)
  ADO.NET (11)
  COM (6)
  Web Services (4)
  C# (1)
  VB.NET (3)
  IIS (2)

J2EE  J2EE
  JSP (15)
  Servlets (9)
  Web Services (1)
  EJB (4)
  JDBC (4)
  E-Commerce (1)
  J2ME (1)
  Products (1)
  Applets (1)
  Patterns (1)

Main Category  Other
  Website Maintenance (3)
Log In
UserName Or Email:

Password:

Auto-Login:

Hosted by Securewebs.com
 
Home : J2EE : Applets : Stop Email Spam with Java Applets
 
Read full length articles at Stardeveloper using Twitter Follow on Twitter Facebook Facebook fan page Email Get Articles via Email RSS Get Articles via RSS Feed

Stop Email Spam with Java Applets

by Ivan Idris.

Introduction
One day a certain Mrs Abacha asked me for a favour by e-mail. She is the widow of a certain Nigerian general who died under mysterious circumstances. In return she offered a few hundred million dollars. This was clearly a spam mail. Spam bots, or email harvesters are the tools used by spammers to collect email addresses. These are comparable to spiders of search engines like Google. However, they have an easier task and require less processing. If you have an established website you are equally likely to be visited by a search engine crawler as by a spam bot. Most websites have at least one contact email address embedded in its web pages. As long as your e-mail address is available in text form, you can be targeted by spammers.

If you are looking for a production ready, stable, easy to use ASP.NET Newsletter application, then look no further: Faisal Khan (of Stardeveloper.com) has created a great Newsletter Application for you to download and start using today. It is easy to install, lets your users subscribe using a subscription form, provides a simple administration interface to create and send newsletters, handles the task of sending newsletters in the background using thread queues on the server, and lets users unsubscribe if they wish so.

One way to minimize spam is to use disposable e-mail addresses, for example: sneakemail. Sneakemail forwards e-mail for free to your real address and gives you a fake e-mail address. If you receive spam, you just have to delete your sneakemail account and make a new one. Still you probably will have to do this every time a spambot visits your site. Another solution is using javascript encoding for the e-mail addresses. This also doesn't guarantee a spam free mail box, because spam software programmers have found ways to deal with this also. Some experts suggest putting your e-mail address in an image, assuming that people wouldn't mind starting their e-mail program and typing the e-mail address. Unfortunately this will only work if your visitors really need to get in touch with you. The best thing to do is to put your email address in a binary file like a java applet, because spam bots are not able to read applets. This requires some extra work, but you can get the source code for the applet here for free.

The applet tag
The applet will contain a button. If the button is clicked the e-mail program will appear ready to send an e-mail. You will need to do two things to set this up. First, you need to put an applet tag in an appropriate place on your website. This is an example:

<applet code="EmailHider.class" width="100" height="30"> 
	<param name="backgroundColor" value="#0000ff"> 
	<param name="buttonColor" value="#d000cc"> 
	<param name="buttonTextColor" value="#0000fc"> 
	<param name="buttonText" value="Send Mail"> 
</applet>

You need to specify the width and height of the applet . You can give the button an appropriate label like "Send Mail". By default if the buttonText parameter is unspecified, the button text will be the same as the e-mail address. It is also possible to change the background color of the applet, the button color and even the color of the button text by supplying the hexadecimal value of the color.


 ( 2 Remaining ) Next

Comments/Questions ( Threads: 3, Comments: 3 )
    Contains 1 or more replies by the Author of this Article.
    Contains 1 or more replies by Faisal Khan.

  1. how about a servlet?
  2. Java is not installed as a default on Windows XP
  3. Standards compliant HTML

Post Comments/Questions

In order to post questions/comments, you must be logged-in. If you are not a member yet, then signup, otherwise login. Once you login then come back to this page and you'll see a form right here which will allow you to post comments/questions.

Please note, one of the benefits of signing up is to be notified immediately by email everytime you receive a reply to the thread you have subscribed.

 
© 1999 - 2010 Stardeveloper.com, All Rights Reserved.