<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1000704" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1000704</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perl-script-question-help-please#comment-1003048</link>
    <description> &lt;p&gt;Tom,&lt;/p&gt;
&lt;p&gt;When an idiot was hunting around my site and posting messages using a double-proxy (to hide his actual IP address) I set up the following:&lt;/p&gt;
&lt;p&gt;$ip = $ENV{&#039;REMOTE_ADDR&#039;};&lt;br /&gt;
if ( $ip =~ &amp;quot;207.171.193.18&amp;quot; ) {&lt;br /&gt;
print &amp;quot;Content-type: text/html\n\n&amp;quot;;&lt;br /&gt;
print &amp;quot;&amp;lt;METAHTTP-EQUIV=\&amp;quot;Refresh\&amp;quot; Content=\&amp;quot;0;URL=http://www.fbi.gov/\&amp;quot;&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Note that I used a Meta refresh because I placed an Include to this &#039;IP check&#039; at the base of my banner display on each of my pages. You can use a direct Location if you are using it in a stand-alone cgi script. This can be easily modified as mentioned above to span a range of subnets... I didn&#039;t have to because the idiot only had fixed holes in systems that he was using. I had to add additonal IP&#039;s a couple of times because I would e-mail the system admin of each hole that he used and they started closing them... Needless to say, he stopped bugging us... lol&lt;/p&gt;
&lt;p&gt;Matt&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
1-On-1 Free Basketball Game - Wanna Play?&lt;br /&gt;
&lt;a href=&quot;http://basketball-game.com&quot; class=&quot;bb-url&quot;&gt;http://basketball-game.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 07 Jul 1999 01:07:00 +0000</pubDate>
 <dc:creator>Voltec</dc:creator>
 <guid isPermaLink="false">comment 1003048 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perl-script-question-help-please#comment-1003049</link>
    <description> &lt;p&gt;almost everything said....&lt;br /&gt;
btw, you don&#039;t have to scan through all adresses from 0 to 999 since IPs just go up to 255 &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;br /&gt;
cu&lt;br /&gt;
patrick&lt;/p&gt;
 </description>
     <pubDate>Tue, 06 Jul 1999 18:44:00 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1003049 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perl-script-question-help-please#comment-1003047</link>
    <description> &lt;p&gt;As John said ... use this:&lt;/p&gt;
&lt;p&gt;if ($userip =~ /100.100.100.[1-999]/) {&lt;br /&gt;
&amp;amp;dosomething;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Polpus&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
wdresources&lt;br /&gt;
&lt;a href=&quot;http://www.wdresources.com&quot; class=&quot;bb-url&quot;&gt;http://www.wdresources.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 06 Jul 1999 16:32:00 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1003047 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perl-script-question-help-please#comment-1003046</link>
    <description> &lt;p&gt;I think you can pattern match a range like this:&lt;/p&gt;
&lt;p&gt;/[1-999]/&lt;/p&gt;
&lt;p&gt;Only trouble is, you may need to split the IP on the dots to get the last number to use it. &lt;/p&gt;
&lt;p&gt;There are some more experienced Perl programmers here that should be able to offer more help for you. &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;----------&lt;br /&gt;
Page Resource: &lt;a href=&quot;http://www.pageresource.com&quot; class=&quot;bb-url&quot;&gt;http://www.pageresource.com&lt;/a&gt;&lt;br /&gt;
JavaScript City: &lt;a href=&quot;http://www.javascriptcity.com&quot; class=&quot;bb-url&quot;&gt;http://www.javascriptcity.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 06 Jul 1999 16:04:00 +0000</pubDate>
 <dc:creator>John Pollock</dc:creator>
 <guid isPermaLink="false">comment 1003046 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
