I would use an array of IP's that can be stored in a file then read into
an array or list your choice. But first, I would ask, what is the
possibility that this may change in the future? That it might not be
static IP, I would consider this to be a band aid solution to a major
problem, and treat it as such.


-----Original Message-----
From: Jeff Fongemie [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, 7 February 2002 12:32 AM
To: CF-Talk
Subject: there must be a better way...

Wednesday, February 06, 2002, 8:23:41 AM
Hello everyone,

          I have a site with a simple forum. A situation has developed
          where I need to ban a few users from posting.

          Since this was never intended for much, there is no sign in
          feature to establish users so I'm just going to deny their
          IP's. It is working fine, lucky for me they seem to have
          static IP addresses and don't know enough to get around
          this.

          But, is there a more elegant way of achieving the following:
          (ips masked to protect the guilty)

        <CFIF cgi.remote_addr is "66.xx.xx.xx" or cgi.remote_addr is
        "66.xx.xx.xx" or cgi.remote_addr is "24.xx.xx.xx" or
        cgi.remote_addr is "198.xx.xx.xx">


        If I had to ban many users, this could get messy!




Best regards,
 Jeff Fongemie                          mailto:[EMAIL PROTECTED]

______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to