Jump to content

Email link via Database


barney0o0

Recommended Posts

Hi Folks..sorry 2nd post in 2 days!

 

Im trying to create a method to prevent spiders collecting emails addresses from text throughout a website.  The text is updated via a simple form based cms. All the contact names and email address are held within a database.

 

I was thinking about adding a link to a form which is populated by a specifc contact name and email address...would this prevent spam, or will it still follow along the sames lines?

 

So, for example, the admin would add a link to a name...contactform.php?ID=23, then the form would process the form to the person with the email address of id 23.

 

Does this sound like a good method, and is there someone who could hold my hand on this

 

Many thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/93520-email-link-via-database/
Share on other sites

well then... don't place the email on the physical page, just a link to the id in the database so when it gets submitted, it links to that, grabs the email, then sends the email, without even getting printed to a page, and a spider/robot even get text to parse it the email and save it.

so you get the ID from your url, save that ID in a hidden field in the form, then when you pass the form to the email processing script, you grab that ID from the hidden field, and search the database for the correct email.

 

Now you return the email, and send it to the person. You haven't posted anything on the page yet. when the email gets sent, redirect the user to a success page or something on those lines, and the email will have never been posted on the page, and has been kept private!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.