Title: Prevent Code in Name Field?
Last modified: July 26, 2020

---

# Prevent Code in Name Field?

 *  [CCeliaS](https://wordpress.org/support/users/ccelias/)
 * (@ccelias)
 * [6 years ago](https://wordpress.org/support/topic/prevent-code-in-name-field/)
 * I just read about a spam exploit where spammers put someone else’s email address
   into the “Email” field and a malicious link in the “Name” or “Message” field,
   thus using the Webform to harm others via the reply email.
 * 1) Does the form prevent code in the users response fields?
 * or
 * 2) Is there a way to suppress the name, email and message quoted text in the 
   reply email, to avoid this exploit?
 * Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [6 years ago](https://wordpress.org/support/topic/prevent-code-in-name-field/#post-13172251)
 * Hi,
 * All user input is being validated and sanitized by using the native WordPress
   functions `sanitize_text_field()`, `sanitize_email()` and `sanitize_textarea_field()`.
   So malicious code is being stripped.
 * Guido
 *  Thread Starter [CCeliaS](https://wordpress.org/support/users/ccelias/)
 * (@ccelias)
 * [6 years ago](https://wordpress.org/support/topic/prevent-code-in-name-field/#post-13172878)
 * Thank you for the clarification! I got an email from someone, saying she didn’t
   understand why she’d been signed up for our list: I Googled the issue and saw
   that forms could be misused in that way. I’m grateful you (and WordPress) have
   set it up to prevent the issue. Cheers!
 *  Plugin Author [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [6 years ago](https://wordpress.org/support/topic/prevent-code-in-name-field/#post-13175986)
 * Guess you’re using another form to let users signup for this list (newsletter)?
   In that case, check that form as well.
 * Guido

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Prevent Code in Name Field?’ is closed to new replies.

 * ![](https://ps.w.org/very-simple-contact-form/assets/icon-256x256.png?rev=1415751)
 * [VS Contact Form](https://wordpress.org/plugins/very-simple-contact-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/very-simple-contact-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/very-simple-contact-form/)
 * [Active Topics](https://wordpress.org/support/plugin/very-simple-contact-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/very-simple-contact-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/very-simple-contact-form/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Guido](https://wordpress.org/support/users/guido07111975/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/prevent-code-in-name-field/#post-13175986)
 * Status: not resolved