<?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 yahoo accounts in email field</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Blocking yahoo accounts in email field</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 20:58:15 +0000</pubDate>

<item>
<title>HeuF on "Blocking yahoo accounts in email field"</title>
<link>https://www.machform.com/forums/topic/blocking-yahoo-accounts-in-email-field#post-22173</link>
<pubDate>Thu, 13 Nov 2014 00:10:11 +0000</pubDate>
<dc:creator>HeuF</dc:creator>
<guid isPermaLink="false">22173@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Am I right?
&#60;/p&#62;</description>
</item>
<item>
<title>HeuF on "Blocking yahoo accounts in email field"</title>
<link>https://www.machform.com/forums/topic/blocking-yahoo-accounts-in-email-field#post-21259</link>
<pubDate>Mon, 16 Jun 2014 20:36:31 +0000</pubDate>
<dc:creator>HeuF</dc:creator>
<guid isPermaLink="false">21259@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;What if I want more for example: yahoo and gmail&#60;/p&#62;
&#60;p&#62;if(empty($result)){&#60;br /&#62;
return sprintf($error_message,'%s',$value[0]);&#60;br /&#62;
}else{&#60;br /&#62;
//block Yahoo&#60;/p&#62;
&#60;p&#62;if(strpos(strtolower($value[0]), 'yahoo') !== false ){&#60;br /&#62;
return &#34;Sorry. Please use a non-Yahoo address&#34;;&#60;br /&#62;
}else{&#60;br /&#62;
//block Gmail&#60;/p&#62;
&#60;p&#62;if(strpos(strtolower($value[0]), 'gmail') !== false ){&#60;br /&#62;
return &#34;Sorry. Please use a non-Gmail address&#34;;&#60;br /&#62;
}else{&#60;br /&#62;
return true;&#60;br /&#62;
}&#60;br /&#62;
return true;&#60;br /&#62;
}&#60;br /&#62;
--------------------------------------------------------------------------------
&#60;/p&#62;</description>
</item>
<item>
<title>zn92 on "Blocking yahoo accounts in email field"</title>
<link>https://www.machform.com/forums/topic/blocking-yahoo-accounts-in-email-field#post-21244</link>
<pubDate>Fri, 13 Jun 2014 04:55:21 +0000</pubDate>
<dc:creator>zn92</dc:creator>
<guid isPermaLink="false">21244@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you!
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Blocking yahoo accounts in email field"</title>
<link>https://www.machform.com/forums/topic/blocking-yahoo-accounts-in-email-field#post-21199</link>
<pubDate>Mon, 09 Jun 2014 11:37:55 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">21199@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You can edit your &#34;includes/common-validator.php&#34; file. Search around line 349 for this block of code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(empty($result)){
				return sprintf($error_message,&#38;#39;%s&#38;#39;,$value[0]);
			}else{
				return true;
			}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace it with this one:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(empty($result)){
				return sprintf($error_message,&#38;#39;%s&#38;#39;,$value[0]);
			}else{
				//block Yahoo

				if(strpos(strtolower($value[0]), &#38;#39;yahoo&#38;#39;) !== false ){
					return &#38;quot;Sorry. Please use a non-Yahoo address&#38;quot;;
				}else{
					return true;
				}
				return true;
			}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>davidballard on "Blocking yahoo accounts in email field"</title>
<link>https://www.machform.com/forums/topic/blocking-yahoo-accounts-in-email-field#post-21185</link>
<pubDate>Sun, 08 Jun 2014 05:39:55 +0000</pubDate>
<dc:creator>davidballard</dc:creator>
<guid isPermaLink="false">21185@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;zn92, &#60;/p&#62;
&#60;p&#62;There may be ways that I am not aware of, but you could have your form be several pages long.  An example:  First, have the form user enter their email address and then use form logic to direct to them to the actual form page where you are collecting whatever information you are looking for and if they submit a yahoo address, use logic to direct the user to a page that &#34;nicely&#34; (if you are looking to be nice) tells the yahoo.com users that you can not accept emails from yahoo.com.&#60;/p&#62;
&#60;p&#62;Well, guess that won't work.  Sorry about that zn92, the continue button gets in the way.&#60;/p&#62;
&#60;p&#62;-David
&#60;/p&#62;</description>
</item>
<item>
<title>zn92 on "Blocking yahoo accounts in email field"</title>
<link>https://www.machform.com/forums/topic/blocking-yahoo-accounts-in-email-field#post-21184</link>
<pubDate>Sun, 08 Jun 2014 02:24:08 +0000</pubDate>
<dc:creator>zn92</dc:creator>
<guid isPermaLink="false">21184@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Is there a way to modify the email field so that yahoo addresses are not accepted?  &#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
