LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-09-2004, 11:00 AM   #1
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Rep: Reputation: 31
Making a form to add users that can't be misused.


I'm trying to create a program that will add a user from an HTML form. However, I don't want someone to be able to create a script that will fill the database with users.

Making a lag of a second, or so, will cut down on the quantity of users that somone can add, but that's not really a solution.

Making it so one IP can't add more than one user every so often might work, but can someone spoof their IP and add as many as they want? Since this is over TCP, which has a three-way handshake, would they have to actually be at that IP or could they spoof it?

How should I do this?

Thanks.
 
Old 12-09-2004, 11:13 AM   #2
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
is this problem a big concert?

The best way is to require email confirmation (one email for only one account).
 
Old 12-09-2004, 12:02 PM   #3
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Original Poster
Rep: Reputation: 31
I was just wanting to do it the "right way."

The e-mail way is a good idea, but someone could still fill the database with users waiting to be confirmed.
 
Old 12-09-2004, 12:39 PM   #4
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
you can confirm the email first, then allow them to create account. But you always have to store some sort of information.

use a combo of IP, email and other methods.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't add users to "samba users" in control center g_jakes Linux - Networking 1 05-20-2005 01:28 PM
can't add users to "samba users" in control center g_jakes Linux - Wireless Networking 1 05-20-2005 01:27 PM
Add FTP User Via Web Form alanpollenz Linux - General 2 05-28-2004 05:14 PM
prevent users form usins MySQL without password Punker51 Linux - Software 0 12-01-2003 09:51 PM
How do I remove users form my system? Joey.Dale Red Hat 2 11-11-2003 07:43 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration