IP Address range filtering

Results 1 to 2 of 2

Thread: IP Address range filtering

  1. #1
    Join Date
    Dec 1969

    Default IP Address range filtering

    Hi<BR><BR>I am filtering a range of IP addresses for a particular proxy server ( 64.27.84.* ) with the code below and was wondering if there was a better method to do this ?<BR><BR>-----------------------------------------------------------------<BR><BR>Dim variable<BR><BR>variable = Request.ServerVariables("LOCAL_ADDR")<BR><BR>if Mid(variable,1,8) = "64.27.84" Then<BR> &#039Do nothing<BR>Else<BR> Call pageCount("count")<BR>End If<BR>

  2. #2
    BalletChick Guest

    Default Slightly more efficient, that's all...

    Do this instead:<BR><BR>if left(variable, 8) &#060;&#062; "64.27.84" then<BR> pageCount "count"<BR>end if

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts