Get support from Xavier Media
It is currently Sun Dec 08, 2013 6:43 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Best Practices question for handling form data
PostPosted: Thu Jan 25, 2007 10:17 pm 

Points:
I have a question....

My PHP form processing script was being used for spam, so I pulled it. I've been studding all week about PHP data validation and security.
:shock: I have the nose bleeds from the steepness of the learning curve as proof.

I was told not to send out email from incoming form data, even if it is validated, because you can never block all the security holes.

But that's what I want the data for, I don't want it for a database, and I work for Christian non-profits that don't want people asking for prayer to have to use a captcha to submit their request!

So in this situation what is the 'Best Practice'? My coding is no where near the level of hackers, I cannot write code to cover every issue and although there are bits and pieces of code for this out there I still have to find it, customize it, and know how to use it - there isn't a complete secure answer for beginners out there. Beginner?s stuff is way to basic to keep hackers out, and advance stuff is to geek-speak to understand and use.

The classic technology catch-22 Oy! This is a tutorial that needs to be written!

I know:
1. I need to validate all incoming data, that goes double for data visitors are submitting. I have some simple examples of this, such as testing to see if the var is empty - simple. But how to I test for extra To: or Subject? Or test for CC, which I am not using, but a hacker could inject into my script?

2. I need to generate an unique code when the form submits and validate that first in my php (hidden version of captcha) or exit. How to do this was explained on an advanced php site - I only follow the gist and the site didn't give the step by step - Yikes! I know how to generate the code, but not how to test for it....

3. I don't know the best way to email that data.... when, how etc. I hate to rely on PHP alone. Back when my ISP had server/script problems I still had the data because I had it emailed to me first thing. How do I get around this issue?

Your help is very appreciated.


Report this post
Top
  
Reply with quote  
 Post subject: Re: Best Practices question for handling form data
PostPosted: Fri Jan 26, 2007 2:05 am 

Points:
I will look into writing a new lesson on this kind of thing.

However, I still have my hands full with a lot of new things going on. So...
You can (A) wait for me to make one or (B) hope someone else does...

OR

(C) Use this cool script to solve your problems. :D
http://www.dagondesign.com/articles/sec ... er-script/


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: Fri Jan 26, 2007 2:35 am 

Points:
Thanks for option C - That's cool ?

If you need anyone to test your tutorial out on just let me know
:-D

Thanks,

~Jami


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Registered users: xlreariasd


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Portal » Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[
SEO MOD © 2007 StarTrekGuide ]