Title: Plugin idea: domain name validation
Last modified: October 12, 2017

---

# Plugin idea: domain name validation

 *  Resolved [Erik Molenaar](https://wordpress.org/support/users/erikmolenaar/)
 * (@erikmolenaar)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/)
 * Hi,
 * I think I have a great idea to further improve your plugin.
 * I regularly work with development or staging versions of live websites, which
   can unintentionally send out e-mail to the real world. Which is kinda annoying.
 * Unitil now, after building a new staging/dev install, I usually enter a fake 
   hostname and port in your plugin settings to make sure this doesn’t happen.
 * Why not ad a “Domain Name Validation” option like this: [https://www.screencast.com/t/SVX0xvBkOy](https://www.screencast.com/t/SVX0xvBkOy)
 * I think it would make an awesome new future. Thanks!

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/page/2/?output_format=md)

 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/#post-9582890)
 * Thank you for your suggestion. I have submitted a message to the plugin developers
   to investigate further your suggestion/request.
 * Kind regards
 *  [wp.insider](https://wordpress.org/support/users/wpinsider-1/)
 * (@wpinsider-1)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/#post-9583682)
 * Thank you. I will look into it.
 *  [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/#post-9583815)
 * Hi [@erikmolenaar](https://wordpress.org/support/users/erikmolenaar/).
 * As I understand from your message, you want an option in the plugin, which, when
   checked, checks if domain name of the website it’s running on matches the list
   you specify. If it matches, then it can send email, and if not – it isn’t sending
   it.
 * Am I correct? If not, could you please provide some additional details.
 * Thanks.
 *  Thread Starter [Erik Molenaar](https://wordpress.org/support/users/erikmolenaar/)
 * (@erikmolenaar)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/#post-9583850)
 * Hi [@alexanderfoxc](https://wordpress.org/support/users/alexanderfoxc/),
 * Correct. But I think a single input field would be sufficient compared to a list.
 * In a single input field you’ll just enter your live domain name (e.g. mywebsite.
   com). A list would be not needed as you just want to make sure it **only** emails
   out from the live domain (and NOT from others like staging.mywebsite.com or localhost).
 * Thanks!
 *  [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/#post-9587274)
 * Thank you for your clarifications, [@erikmolenaar](https://wordpress.org/support/users/erikmolenaar/).
 * This functionality is coming in next version, which should be released short 
   😉
 *  Thread Starter [Erik Molenaar](https://wordpress.org/support/users/erikmolenaar/)
 * (@erikmolenaar)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/#post-9587288)
 * Thanks great news. Thanks for listening to my feedback 🙂
 *  Thread Starter [Erik Molenaar](https://wordpress.org/support/users/erikmolenaar/)
 * (@erikmolenaar)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/#post-9593573)
 * One more thing I notice now when working with the new domain check field.
 * The domain value tends to be replaced during building a staging/development version
   of a website. E.g.: by using WP Engine’s ‘copy to staging’ functionality, deploying
   with Duplicator or when working with popular ‘search & replace URL’ plugins such
   as Velvet Blues.
 * Is it possible to encode this field in the database it so it would be affected
   by ‘URL search & replace’ scripts?
 *  [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/#post-9593826)
 * Hi Erik. You want it to BE affected or NOT to be affected? As I understand from
   your use case, you want the value to be preserved rather than replaced during
   copy to staging.
 *  Thread Starter [Erik Molenaar](https://wordpress.org/support/users/erikmolenaar/)
 * (@erikmolenaar)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/#post-9593850)
 * Hi Alexander
 * Thanks for your reply.
 * I would say it should NOT be replaced and thus preserved during a migration (
   which usually includes a URL search and replace script).
 * This way the only case where email is send out to the ‘real world’ in from the
   live domain only.
 *  [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/#post-9593858)
 * Yep, that’s what I thought too 🙂 Thank you for your reply.
 * It would be implemented in next version.
 *  Thread Starter [Erik Molenaar](https://wordpress.org/support/users/erikmolenaar/)
 * (@erikmolenaar)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/#post-9597345)
 * > so it would be affected by ‘URL search & replace’ scripts?
 * Sorry that was a typo on my end 🙂
    Looking forward to your plugin update and
   thanks again for listening!
 *  Thread Starter [Erik Molenaar](https://wordpress.org/support/users/erikmolenaar/)
 * (@erikmolenaar)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/#post-9604351)
 * Hi [@alexanderfoxc](https://wordpress.org/support/users/alexanderfoxc/),
 * I just updated to 1.2.9, which was released 3 days ago but the domain name value
   is still being renamed by WP Engine’s staging functionality.
 * Or am I a bit too soon with 1.2.9 and will the fields be encoded in the next 
   version of your plugin? 🙂
 * Looking forward to your reply and plugin update. Thanks!
 * Kind regards
 *  [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/#post-9604414)
 * Hey [@erikmolenaar](https://wordpress.org/support/users/erikmolenaar/), this 
   is coming in next version, which should be released within couple of days 😉
 *  Thread Starter [Erik Molenaar](https://wordpress.org/support/users/erikmolenaar/)
 * (@erikmolenaar)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/#post-9606928)
 * Hi [@alexanderfoxc](https://wordpress.org/support/users/alexanderfoxc/)
 * Just wanted to now it works beautifully with version 3.1.0.
 * Just one more question: how did you do this; preventing this field NOT to be 
   renamed during search&replace procedures? WP Engine even told me it was not possible,
   as their system renames EVERY domain reference during building a staging/development
   version.
 * Looking forward to your reply. Thanks!
 *  [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/#post-9606993)
 * Hey Erik [@erikmolenaar](https://wordpress.org/support/users/erikmolenaar/) ,
   the version is 1.3.0, but doesn’t matter 😉
 * What I did is applied base64_encode on the domains list value. This way following
   line
 * _domain1.com, domain2.com_
 * turns into
 * _ZG9tYWluMS5jb20sIGRvbWFpbjIuY29t_
 * and migration scripts can’t see anything familiar, thus not replacing any values
   😉
    -  This reply was modified 8 years, 7 months ago by [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/).

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/page/2/?output_format=md)

The topic ‘Plugin idea: domain name validation’ is closed to new replies.

 * ![](https://ps.w.org/easy-wp-smtp/assets/icon.svg?rev=3158017)
 * [Easy WP SMTP – WordPress SMTP and Email Logs: Gmail, Office 365, Outlook, Custom SMTP, and more](https://wordpress.org/plugins/easy-wp-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-wp-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-wp-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-wp-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-wp-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-wp-smtp/reviews/)

 * 21 replies
 * 4 participants
 * Last reply from: [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/plugin-idea-domain-name-validation/page/2/#post-9690069)
 * Status: resolved