<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1015399" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1015399</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/domain-exclude#comment-1089250</link>
    <description> &lt;p&gt;Thank you so much for your help! I am in your debt &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Mark was nice enough to assist me and I&#039;m happy to say my problem is not only solved but solved beyond my expectations &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt; Thank you both for your assisstance.&lt;/p&gt;
 </description>
     <pubDate>Sat, 08 Sep 2001 10:27:16 +0000</pubDate>
 <dc:creator>Bane</dc:creator>
 <guid isPermaLink="false">comment 1089250 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/domain-exclude#comment-1089030</link>
    <description> &lt;p&gt;Welcome to TWF, Bane!&lt;/p&gt;
&lt;p&gt;I would use an array...&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$dont_log &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;bob.com\&quot;,with bob.com&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&quot;bill.com\&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&quot;spankysue.com\&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;br /&gt;&lt;br /&gt;if (!in_array(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$HTTP_REFERER&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dont_log&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) &amp;amp;&amp;amp; !in_array(\&quot;www.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$HTTP_REFERER&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dont_log&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //domain not found, log it&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
You could even get more creative, and use regex..&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$dont_log &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;/([0-9a-zA-Z]*)bob.com$/i\&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&quot;/^([w\\.]*)bill.com$/\&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&quot;/spankysue.com/\&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;br /&gt;&lt;br /&gt;foreach (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dont_log&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; as &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tmp&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!preg_match(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tmp&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$HTTP_REFERER&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //domain not found, log it&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
Docs: &lt;a href=&quot;http://php.net/manual/en/function.preg-match.php&quot; class=&quot;bb-url&quot;&gt;preg_match()&lt;/a&gt;, &lt;a href=&quot;http://php.net/manual/en/function.in-array.php&quot; class=&quot;bb-url&quot;&gt;in_array()&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 06 Sep 2001 01:30:00 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1089030 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/domain-exclude#comment-1088997</link>
    <description> &lt;p&gt;No problem.  I don&#039;t know PHP though, sorry.&lt;/p&gt;
&lt;p&gt;Good Luck!  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 05 Sep 2001 21:49:50 +0000</pubDate>
 <dc:creator>tmay</dc:creator>
 <guid isPermaLink="false">comment 1088997 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/domain-exclude#comment-1088995</link>
    <description> &lt;p&gt;I suppose I should have said with PHP &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt; Thanks for the assistance however &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 05 Sep 2001 21:44:51 +0000</pubDate>
 <dc:creator>Bane</dc:creator>
 <guid isPermaLink="false">comment 1088995 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/domain-exclude#comment-1088992</link>
    <description> &lt;p&gt;I&#039;m assuming this is Perl?  If you only need to search through it once, I&#039;d stick them into an array and sift through them with a foreach statement:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;@skip = qw/bob.com bill.com spankysue.com/;&lt;br /&gt;&lt;br /&gt;$is_there = 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach $i (@skip) {&lt;br /&gt;	if ($i eq $domain_to_find) {&lt;br /&gt;	&amp;nbsp;&amp;nbsp;&amp;nbsp; $is_there = 1;&lt;br /&gt;	&amp;nbsp;&amp;nbsp;&amp;nbsp; last;&lt;br /&gt;	}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($is_there) { ...code not to log... }&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Wed, 05 Sep 2001 21:42:07 +0000</pubDate>
 <dc:creator>tmay</dc:creator>
 <guid isPermaLink="false">comment 1088992 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
