5, December 2008

Website security against email spammers - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Website security against email spammers
« previous next »
Pages: [1] Print

Author Topic: Website security against email spammers  (Read 782 times)
Raped By Google
*
Gender: Male
Posts: 27
206 credits
Members referred : 0

PPC 4 Real Estate


« on: Nov 24, 2006, 01:57:15 AM »

I use a series of php  pages to display information from the db. At the end of this series of pages I provide a contact page where the php script 1) goes to the db to retrieve the email address of the record owner and 2)  sends the contact info from the form to the record owner.

I didn't establish any sessions for any of these displays. I send the record ID number through the url for the displays and the contact form. I realize now that if someone iterated through the numbers and changed the url they could send every record holder an emaiol through the contact form. Hmmmm, not good.

So I need to secure this process and I am looking for suggestions. Should I put everything into a session? Or should I send an email to the sender for verification of each contact before sending the email to the record holder? This would ensure that any spammer would receive one spam for every one they sent (a minor consulation Smiley). Or should I make an md5 hash of the record ID and some other factor(s) and send it in addition to the record ID to verify it hasn't been tampered with?

Are there other methods that I could use? Which would be the most secure? easiest to install?
Where are my glasses?
*
Gender: Male
Posts: 21
138 credits
Members referred : 0


« Reply #1 on: Nov 24, 2006, 08:03:56 AM »

I assume you use GET to receive the ID - I'd suggest you use POST as this makes the ID and other variables invisible in the browser bar, store everything in a session.

What do you mean you show a contact form? Is this within when the user has already logged in? If so, a session would be the best way to deal with this problem.
Raped By Google
*
Gender: Male
Posts: 27
206 credits
Members referred : 0

PPC 4 Real Estate


« Reply #2 on: Nov 24, 2006, 08:35:07 AM »

Thanks artviper. I took your advice and used sessions.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6486
39748 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Nov 24, 2006, 09:00:47 AM »

I assume you use GET to receive the ID - I'd suggest you use POST as this makes the ID and other variables invisible in the browser bar, store everything in a session.

What do you mean you show a contact form? Is this within when the user has already logged in? If so, a session would be the best way to deal with this problem.

Hi Frank,

using post variables will not show the ID inside the url but the script is still not protected against spam bots. Using sessions is a good idea.

just put all vars into an array, serialize the array store the var in a session and use unserialize on the next page


Last blog : Just a better Internet portal provided by Google
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4935
Tags : php spam browsers email Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Website security against email spammers
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Dec 05, 2008, 04:33:47 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.995
Total Topics: 7.685
Total Members: 4.467
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: jschless81

29 Guests, 4 Users online :

10 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.