<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Blocking emailadresses from email field [urgent]!</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Blocking emailadresses from email field [urgent]!</description>
<language>en</language>
<pubDate>Sun, 19 Apr 2026 13:35:18 +0000</pubDate>

<item>
<title>MvdL79 on "Blocking emailadresses from email field [urgent]!"</title>
<link>https://www.machform.com/forums/topic/blocking-emailadresses-from-email-field-urgent#post-3643</link>
<pubDate>Thu, 13 Nov 2008 21:23:36 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">3643@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Works great! Thanks! :)&#60;/p&#62;
&#60;p&#62;//edit&#60;/p&#62;
&#60;p&#62;Yeah I overlooked the message part, my bad! :)
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Blocking emailadresses from email field [urgent]!"</title>
<link>https://www.machform.com/forums/topic/blocking-emailadresses-from-email-field-urgent#post-3641</link>
<pubDate>Thu, 13 Nov 2008 21:15:41 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">3641@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;yes they will get 'This email not allowed', to add custom message simply change those message.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;return &#38;#39;This email not allowed&#38;#39;;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>MvdL79 on "Blocking emailadresses from email field [urgent]!"</title>
<link>https://www.machform.com/forums/topic/blocking-emailadresses-from-email-field-urgent#post-3640</link>
<pubDate>Thu, 13 Nov 2008 21:11:13 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">3640@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Okay thanks!! You are a life-saver. :)&#60;br /&#62;
I will give it a go!
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Blocking emailadresses from email field [urgent]!"</title>
<link>https://www.machform.com/forums/topic/blocking-emailadresses-from-email-field-urgent#post-3639</link>
<pubDate>Thu, 13 Nov 2008 20:46:59 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">3639@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;In this case you should add another validation to block those e-mails. Open your &#34;includes/common-validator.php&#34; and add those code on line 28.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//validation for email address
function validate_blacklist_mail($value){

	//define blocked email address
	$block_email_list = &#38;#39;@test.com,@wow.com&#38;#39;;

	$blacklisted_mail = explode(&#38;#39;,&#38;#39;,strtolower($block_email_list));

	if(in_array(strstr($value[0],&#38;#39;@&#38;#39;),$blacklisted_mail)){
		return &#38;#39;This email not allowed&#38;#39;;
	} else {
		return true;
	}			

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;in there I assume you want to block e-mail from test.com and wow.com. After that edit your &#34;includes/post-functions.php&#34; and search on line 289, you'll find this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$rules[$element_name][&#38;#39;email&#38;#39;] = true;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;add exactly below that code to activate the validation:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$rules[$element_name][&#38;#39;email&#38;#39;] = true;
if ($form_id == &#38;#39;11&#38;#39;) {
	$rules[$element_name][&#38;#39;blacklist_mail&#38;#39;] = true;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Finnaly it also filter the validation only for form 11 :).
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "Blocking emailadresses from email field [urgent]!"</title>
<link>https://www.machform.com/forums/topic/blocking-emailadresses-from-email-field-urgent#post-3637</link>
<pubDate>Thu, 13 Nov 2008 17:45:24 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">3637@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Oh and if it's possible only for specific forms, so we can still use, for example, Hotmail accounts on some forms (e.g. migration forms).&#60;/p&#62;
&#60;p&#62;Currently we have about 14 active forms. However from form 1 through 11 it's not allowed to use free emailaccounts like Hotmail and Gmail, but on forms 12 through 14 it is allowed to use these.&#60;/p&#62;
&#60;p&#62;Hopefully I made myself clear! Thank you.
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "Blocking emailadresses from email field [urgent]!"</title>
<link>https://www.machform.com/forums/topic/blocking-emailadresses-from-email-field-urgent#post-3636</link>
<pubDate>Thu, 13 Nov 2008 17:40:08 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">3636@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Yuniar,&#60;/p&#62;
&#60;p&#62;A &#34;quick&#34; question; is there a fast way to block email accounts like @hotmail.com, @msn.com, @gmail.com, @live.nl, etc. from the email field?&#60;/p&#62;
&#60;p&#62;Our company does not accept orders from those emailaccounts.&#60;/p&#62;
&#60;p&#62;Please advice... Thanks in advance!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
