<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : Bug with a Banned IP’s</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : Bug with a Banned IP’s]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 13 Apr 2026 08:58:34 +0000</pubDate>
  <lastBuildDate>Tue, 07 Feb 2006 13:31:56 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=18259</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[Bug with a Banned IP’s : Many thanks for the suggestion ...]]></title>
   <link>https://forums.webwiz.net/bug-with-a-banned-ips_topic18259_post98967.html#98967</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 18259<br /><strong>Posted:</strong> 07&nbsp;February&nbsp;2006 at 1:31pm<br /><br />Many thanks for the suggestion]]>
   </description>
   <pubDate>Tue, 07 Feb 2006 13:31:56 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/bug-with-a-banned-ips_topic18259_post98967.html#98967</guid>
  </item> 
  <item>
   <title><![CDATA[Bug with a Banned IP’s : I offer in my opinion the most...]]></title>
   <link>https://forums.webwiz.net/bug-with-a-banned-ips_topic18259_post98907.html#98907</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=20806">Ritchie</a><br /><strong>Subject:</strong> 18259<br /><strong>Posted:</strong> 06&nbsp;February&nbsp;2006 at 8:36pm<br /><br /><SPAN id=r_text name="r_text">I offer in my opinion the most simple way of the decision of this problem. It is necessary to add only one variable and to replace&nbsp; (functions_common.asp for WWF 8 beta 1)<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#ff0000>951&nbsp;&nbsp;&nbsp;'Remove the wildcard charcter form the IP<BR>952&nbsp;&nbsp;&nbsp;strCheckIPAddress = Replace(strCheckIPAddress, "*", "", 1, -1, 1)<BR>953<BR>954&nbsp;&nbsp;&nbsp;'Trim the users IP to the same length as the IP range to check<BR>955&nbsp;&nbsp;&nbsp;strTmpUserIPAddress = Mid(strTmpUserIPAddress, 1, Len(strCheckIPAddress))<BR>956<BR>957&nbsp;&nbsp;&nbsp;'See if whats left of the IP matches<BR>958&nbsp;&nbsp;&nbsp;If strCheckIPAddress = strTmpUserIPAddress Then blnIPMatched = True</FONT></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>on </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#ff0000>951&nbsp;&nbsp;&nbsp;'Remove the wildcard charcter form the IP<BR>952&nbsp;&nbsp;&nbsp;strCheckIPAddress = Replace(strCheckIPAddress, "*", "", 1, -1, 1)<BR>953<BR>954&nbsp;&nbsp;&nbsp; <strong>Dim strUserIPAddressMidFunction<BR></strong>955<BR>956&nbsp;&nbsp;&nbsp;'Trim the users IP to the same length as the IP range to check<BR>957&nbsp;&nbsp;&nbsp;<strong>strUserIPAddressMidFunction</strong> = Mid(strTmpUserIPAddress, 1, Len(strCheckIPAddress))<BR>958<BR>959&nbsp;&nbsp;&nbsp;'See if whats left of the IP matches<BR>960&nbsp;&nbsp;&nbsp;If strCheckIPAddress = <strong>strUserIPAddressMidFunction</strong> Then blnIPMatched = True</FONT></DIV><DIV>&nbsp;</DIV><DIV>After such changes IP of the address are processed correctly</SPAN> <IMG height=17 alt=Wink src="http://forums.webwiz.net/smileys/smiley2.gif" width=17 align=absMiddle border="0"></DIV><span style="font-size:10px"><br /><br />Edited by Ritchie - 06&nbsp;February&nbsp;2006 at 8:38pm</span>]]>
   </description>
   <pubDate>Mon, 06 Feb 2006 20:36:33 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/bug-with-a-banned-ips_topic18259_post98907.html#98907</guid>
  </item> 
  <item>
   <title><![CDATA[Bug with a Banned IP’s : I&amp;#039;m sure this bug was fixed...]]></title>
   <link>https://forums.webwiz.net/bug-with-a-banned-ips_topic18259_post98871.html#98871</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 18259<br /><strong>Posted:</strong> 06&nbsp;February&nbsp;2006 at 1:01pm<br /><br />I'm sure this bug was fixed sometime ago, and I have been through the present code and con not replicate this error.]]>
   </description>
   <pubDate>Mon, 06 Feb 2006 13:01:23 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/bug-with-a-banned-ips_topic18259_post98871.html#98871</guid>
  </item> 
  <item>
   <title><![CDATA[Bug with a Banned IP’s :  The given problem is present...]]></title>
   <link>https://forums.webwiz.net/bug-with-a-banned-ips_topic18259_post98749.html#98749</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=20806">Ritchie</a><br /><strong>Subject:</strong> 18259<br /><strong>Posted:</strong> 04&nbsp;February&nbsp;2006 at 11:00pm<br /><br /><SPAN id=r_text name="r_text"><DIV><SPAN id=r_text name="r_text">The given problem is present in 7.xx and in 8 beta 1 versions of a forum. Not all addresses in the list can be banned!</SPAN></DIV><DIV>&nbsp;</DIV><DIV>Function <strong>Ban IP</strong> in a file <strong>functions_common.asp</strong> works incorrectly. If at the list are present single IP addresses - all normally work. If in the list it is brought IP the address with a symbol * (Ban on a mask) all addresses which are located below this address not banned. If to exclude the given address from the list function works correctly. I have laid out a file which shows this mistake.</SPAN> </DIV><DIV>&nbsp;</DIV><DIV><strong>So works:</strong></DIV><DIV><IMG height=390 src="http://217.147.29.102/sample/banned.gif" width=195 border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><SPAN id=r_text name="r_text"><strong>So does not work:</strong></SPAN> </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><IMG height=388 src="http://217.147.29.102/sample/notbanned.gif" width=195 border="0"></DIV><DIV>&nbsp;</DIV><DIV><SPAN id=r_text name="r_text"><strong>So normally works - IP the address with (<FONT color=#ff0000>*</FONT>) <FONT color=#ff0000>128.78.69.*&nbsp;</FONT>is removed</strong></SPAN>:</DIV><DIV>&nbsp;</DIV><DIV><IMG height=374 src="http://217.147.29.102/sample/removebanned.gif" width=198 border="0"></DIV><DIV>&nbsp;</DIV><DIV><SPAN id=r_text name="r_text">Here it is possible to take a file which shows misoperation of function</SPAN> <strong></strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV><FONT color=#ff0000>'******************************************<BR>'****&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Banned IP's&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *****<BR>'******************************************<BR>Private Function bannedIP()</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;'Declare variables<BR>&nbsp;Dim rsIPAddr<BR>&nbsp;Dim strCheckIPAddress<BR>&nbsp;Dim strUserIPAddress<BR>&nbsp;Dim blnIPMatched<BR>&nbsp;Dim strTmpUserIPAddress</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;'Intilise variable<BR>&nbsp;blnIPMatched = False</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;'Get the users IP<BR>&nbsp;strUserIPAddress = getIP()<BR>&nbsp;<BR>&nbsp;'Intialise the ADO recordset object<BR>&nbsp;Set rsIPAddr = Server.CreateObject("ADODB.Recordset")</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;'Get any banned IP address from the database<BR>&nbsp;'Initalise the strSQL variable with an SQL statement to query the database to count the number of topics in the forums<BR>&nbsp;strSQL = "SELECT " &amp; strDbTable &amp; "BanList.IP " &amp; _<BR>&nbsp;"FROM " &amp; strDbTable &amp; "BanList" &amp; strDBNoLock &amp; " "&nbsp; &amp; _<BR>&nbsp;"WHERE " &amp; strDbTable &amp; "BanList.IP Is Not Null;"</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;'Query the database<BR>&nbsp;rsIPAddr.Open strSQL, adoCon</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;'Loop through the IP address and check 'em out<BR>&nbsp;Do while NOT rsIPAddr.EOF<BR>&nbsp;<BR>&nbsp;&nbsp;'Reset the banned IP address<BR>&nbsp;&nbsp;strTmpUserIPAddress = strUserIPAddress</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;&nbsp;'Get the IP address to check from the recordset<BR>&nbsp;&nbsp;strCheckIPAddress = rsIPAddr("IP")</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;&nbsp;'See if we need to check the IP range or just one IP address<BR>&nbsp;&nbsp;'If the last character is a * then this is a wildcard range to be checked<BR>&nbsp;&nbsp;If Right(strCheckIPAddress, 1) = "*" Then</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;&nbsp;&nbsp;'Remove the wildcard charcter form the IP<BR>&nbsp;&nbsp;&nbsp;strCheckIPAddress = Replace(strCheckIPAddress, "*", "", 1, -1, 1)</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;&nbsp;&nbsp;'Trim the users IP to the same length as the IP range to check<BR>&nbsp;&nbsp;&nbsp;strTmpUserIPAddress = Mid(strTmpUserIPAddress, 1, Len(strCheckIPAddress))</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;&nbsp;&nbsp;'See if whats left of the IP matches<BR>&nbsp;&nbsp;&nbsp;If strCheckIPAddress = strTmpUserIPAddress Then blnIPMatched = True</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;&nbsp;'Else check the IP address metches<BR>&nbsp;&nbsp;Else<BR>&nbsp;&nbsp;&nbsp;'Else check to see if the IP address match<BR>&nbsp;&nbsp;&nbsp;If strCheckIPAddress = strTmpUserIPAddress Then blnIPMatched = True</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;&nbsp;End If</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;&nbsp;'Move to the next record<BR>&nbsp;&nbsp;rsIPAddr.MoveNext<BR>&nbsp;Loop</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;'Clean up<BR>&nbsp;rsIPAddr.Close<BR>&nbsp;Set rsIPAddr = Nothing</FONT></DIV><DIV><FONT color=#ff0000>&nbsp;'Return the function<BR>&nbsp;bannedIP = blnIPMatched<BR>End Function</FONT></DIV><DIV><strong></strong>&nbsp;</DIV><DIV><a href="http://217.147.29.102/sample/IP.zip" target="_blank">http://217.147.29.102/sample/IP.zip</A></DIV><a href="http://217.147.29.102/sample/banned.gif" target="_blank"></A><span style="font-size:10px"><br /><br />Edited by Ritchie - 04&nbsp;February&nbsp;2006 at 11:05pm</span>]]>
   </description>
   <pubDate>Sat, 04 Feb 2006 23:00:40 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/bug-with-a-banned-ips_topic18259_post98749.html#98749</guid>
  </item> 
 </channel>
</rss>