473,402 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

asp.net email text box validation

Hi.

Looking for some feedback on how to prevent a specific spam attack.

I have a form for a person to subscribe to a mailing list and they can
type in their email and click submit to subscribe. They then are sent
an email asking them to click a link to confirm. how can I prevent a
spammer from simply looping through thousands of emails and populating
my email list table with thousands of records and crashing the system?

I have to insert first to get the id of the inserted record to have the
person click the confirmation link in the email sent to them.

I.E

1. submit email address to system (validate it server side)
2. if all is ok, and it is good data, insert it into the db and get the
id of the record just inserted
3. construct the email to the person, construct a confirm link using
the id in the querystring, and send it out.
4. redirect to thank you page explaining confirmation email was sent.

So how can I stop a spammer from jamming thousands of emails in the
system in 10 seconds?

I thought of using some sort of time test, such as 3 seconds, and if a
submission happens in 3 seconds past the initial one, some how testing
for a loop and tons of hits, don't allow it. However, I am not clear on
how to program such a solution.

Does anyone have a way of programming this protection?

Any input is greatly appreciated.

Thanks.

Justin

Nov 19 '05 #1
1 1687
Hello Justin,

I think the best technqiue of doing this is to use the concept of Image
Verification, which now everyone do, like if you signing for yahoo email, or
i am sure that you have experience, that while registering it ask you to
enter the verification code shown in a image that forms contain.

So in this manner as the spammer program cant read the word or numbers
written in the image, so the person have to read and then write it.. I think
this is the best way of hanlding the type of problem you have mentioned.

How to write that program,, which will generate a image on fly, i hope
following link will help you.

http://www.codeproject.com/aspnet/ImageVerification.asp

Best Luck,

--
Wajahat Abbas

http://www.wajahatabbas.com
http://www.dotnetpakistan.com


"frekster" wrote:
Hi.

Looking for some feedback on how to prevent a specific spam attack.

I have a form for a person to subscribe to a mailing list and they can
type in their email and click submit to subscribe. They then are sent
an email asking them to click a link to confirm. how can I prevent a
spammer from simply looping through thousands of emails and populating
my email list table with thousands of records and crashing the system?

I have to insert first to get the id of the inserted record to have the
person click the confirmation link in the email sent to them.

I.E

1. submit email address to system (validate it server side)
2. if all is ok, and it is good data, insert it into the db and get the
id of the record just inserted
3. construct the email to the person, construct a confirm link using
the id in the querystring, and send it out.
4. redirect to thank you page explaining confirmation email was sent.

So how can I stop a spammer from jamming thousands of emails in the
system in 10 seconds?

I thought of using some sort of time test, such as 3 seconds, and if a
submission happens in 3 seconds past the initial one, some how testing
for a loop and tons of hits, don't allow it. However, I am not clear on
how to program such a solution.

Does anyone have a way of programming this protection?

Any input is greatly appreciated.

Thanks.

Justin

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: Dynamo | last post by:
Hi The following script was taken from John Coggeshall's (PHP consultant) in his article on Zends site at http://www.zend.com/zend/spotlight/ev12apr.php // Get the email address to validate...
2
by: Tim Mills | last post by:
The following code asks the user to sumbit a name, email address, and some text for a quotation via a FORM. I have written a javascript function to evaluate the fields in the form and pop-up a...
2
by: Xendor | last post by:
Hi, i am a noobie in asp.net and i have the following problem. I use an Form with a textbox to enter a mail-adress. In this textbox a valid email-adress should be entered. But when i leave the...
7
by: Martin | last post by:
Hi, I have a standard aspx page (form) that contains a few user controls. Upon form submission the page is validated. If validation passses then a text based email is sent. This is all working...
1
by: Joel Barsotti | last post by:
Is there anything builtin to ASP.net that allows you to tie a text box to a button so when you press enter in the text box it emulates clicking a near by button. I've coded up some client side...
4
by: ianbarton | last post by:
Hello all I am trying to setup a feedback form on my webpage using some script provided by my ISP. I really don't know a lot about PHP and it's syntax etc. The feedback form only has 4...
7
by: e_matthes | last post by:
Hello everyone, I've read enough about email validation to know that the only real validation is having a user respond to a confirmation message you've sent them. However, I want to store the...
3
by: dtvuser | last post by:
Hi, I'm new to PHP and seem to be having soom problems, I'm getting confused with all the different styles of script writing. I've created a PHP script to submit details to my email but the...
3
Maidenz08
by: Maidenz08 | last post by:
How do i check whether an email id exists or not? I am following a three step validation process.. 1) syntax validation- which is pretty straight forward 2) DNS validation - I'm able to do...
5
by: Morgan Packard | last post by:
Hello, Is there a generally accepted technique for client-side email address validation? Can someone point me to a good, widely-used and tested script? thanks, -morgan
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.