<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1025007" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1025007</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/ip-address-ban#comment-1152417</link>
    <description> &lt;p&gt;I wrote a script for a company to do something similar. The issue had to do with competition taking new concept ideas off of their site and putting them on their own as their concepts. Luckily the chance of a possible client from the ISP of the competition were small. Someone forwarded the company an e-mail from the competition, so we were able to find their ISP and IP range that ISP used for the area. &lt;/p&gt;
&lt;p&gt;I set up a script that gets called from every page, and if the IP address was in that range, it set a variable to be TRUE. Then anywhere on the pages new content was added, I wrote a check to see if that variable was set to be true. If it was, it didn&#039;t display the new conent. Therefore, to competiton, the site is the same as when we started tracking them. &lt;/p&gt;
&lt;p&gt;I also set up a log that records when they visit. They are gracious enought to contribute at least 1 hit on the statics a day LOL.&lt;/p&gt;
&lt;p&gt;Note, in the following code, I changed the IP#&#039;s to be in an invalid range, you would have to adjust the code to test the IP ranges:&lt;/p&gt;
&lt;p&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;&amp;nbsp; $timestamp &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Y-m-d\&quot;) . \&quot;\t\&quot; . date(\&quot;H:i:s\&quot;);&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$whoisit&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;REMOTE_ADDR&#039;];&lt;br /&gt;&amp;nbsp; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$whoisit&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; == \&quot;\&quot;) &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$whoisit&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;-\&quot;;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$thispage&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;PHP_SELF&#039;];&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$referer&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;HTTP_REFERER&#039;];&lt;br /&gt;&amp;nbsp; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$referer&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; == \&quot;\&quot;) &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$referer&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;-\&quot;;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;HTTP_USER_AGENT&#039;];&lt;br /&gt;&amp;nbsp; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; == \&quot;\&quot;) &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;-\&quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$itsThem&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = FALSE; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; if (substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$whoisit&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,0,7) == \&quot;962.99.\&quot;) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$itsThem&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = TRUE; &lt;br /&gt;&amp;nbsp; elseif (substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$whoisit&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,0,7) == \&quot;916.16.\&quot;) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$itsThem&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = TRUE; &lt;br /&gt;&amp;nbsp; elseif (substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$whoisit&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,0,7) == \&quot;462.30.\&quot;) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$itsThem&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = TRUE; &lt;br /&gt;&lt;br /&gt;&amp;nbsp; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$avisitor&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; == \&quot;A\&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$itsThem&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = TRUE; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$logfile&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; =&amp;nbsp; \&quot;ComAccess_\&quot; . date (\&quot;Y-m-d\&quot;); &lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fh&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = fopen (\&quot;/usr/home/hide/logs/\&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$logfile&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, \&quot;a\&quot;); &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; fwrite(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fh&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$timestamp&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot;\t\&quot; .&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$whoisit&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot;\t\&quot; .&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$thispage&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot;\t\&quot; .&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$referer&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot;\t\&quot; .&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot;\n\&quot;);&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; fclose(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fh&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
Then in the web pages, the first thing to do is &lt;strong&gt;include&lt;/strong&gt; this file. Then in the page you can do something such as the following to add new content:&lt;/p&gt;
&lt;p&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;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;This is original content the competition has already seen &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;and &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;knows about&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;br /&gt;&lt;br /&gt; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$itsThem&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) { &lt;br /&gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;This is the &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;content you don&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;t want them to see&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;!-- Note, be careful if you put PHP code in this section, as you are in an \&quot;IF\&quot; statement here --&amp;gt;&lt;br /&gt;&lt;br /&gt; } &lt;br /&gt; &lt;br /&gt;&amp;lt;p&amp;gt;This is original content the competition has already seen and knows about.&amp;lt;/p&amp;gt;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;and for anything you want to change:&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;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;This is original content the competition has already seen &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;and &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;knows about&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;br /&gt;&lt;br /&gt; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$itsThem&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) { &lt;br /&gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;This is the &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;content you don&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;t want them to see&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt; } else { &lt;br /&gt;&lt;br /&gt;&amp;lt;p&amp;gt;This is the old conent you want to leave to not get them suspicious&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt; } &lt;br /&gt; &lt;br /&gt;&amp;lt;p&amp;gt;This is original content the competition has already seen and knows about.&amp;lt;/p&amp;gt;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Again, I would like to indicate that the company I did this for fully understood that anyone else using their competition&#039;s ISP would also see the &quot;old&quot; site, however, the clients they are looking for are not from that area. Luckily the competition uses a &quot;local&quot; ISP, not a national one.&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Mon, 31 May 2004 16:52:57 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1152417 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/ip-address-ban#comment-1152412</link>
    <description> &lt;p&gt;I&#039;m loathe to recommend how to do something like this -- it will cause you more problems than not if you&#039;re trying to block a PERSON. Blocking robots is easier because the IP is static, not rotating. This goes in your .htaccess file.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;Limit GET HEAD POST&amp;gt;&lt;br /&gt;order allow,deny&lt;br /&gt;deny from 127.0.0.1&lt;br /&gt;allow from all&lt;br /&gt;&amp;lt;/Limit&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Mon, 31 May 2004 15:29:11 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1152412 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/ip-address-ban#comment-1152411</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Suzanne wrote:&lt;/strong&gt; Only if their IP address is fixed. Most aren&#039;t. The best you can do is block a, er, block of addresses and hope for the best. Or require registration for everyone who isn&#039;t banned.&lt;/p&gt;
&lt;p&gt;Or live with it.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Well how would I go about implementing this?&lt;/p&gt;
 </description>
     <pubDate>Mon, 31 May 2004 15:01:25 +0000</pubDate>
 <dc:creator>The Dave</dc:creator>
 <guid isPermaLink="false">comment 1152411 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/ip-address-ban#comment-1152380</link>
    <description> &lt;p&gt;Only if their IP address is fixed. Most aren&#039;t. The best you can do is block a, er, block of addresses and hope for the best. Or require registration for everyone who isn&#039;t banned.&lt;/p&gt;
&lt;p&gt;Or live with it.&lt;/p&gt;
 </description>
     <pubDate>Sun, 30 May 2004 22:19:25 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1152380 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
