Skip to main content
Known Participant
June 26, 2008
Answered

Limit access by IP address

  • June 26, 2008
  • 1 reply
  • 320 views
I'm writing a program as an add-on to our helpdesk where only certain IP ranges need to be able to see a link to get to this area that is being made. It's a laptop checkout system, and only people in the main two buildings need to be able to see it, as they're the only ones who can check them out.

I've been trying the cgi.remote_addr command inside a cfif statement to try and accomplish this, but I just can't seem to get it to work. This is essentially what it looks like right now

iprange1 is the ip range for the first building, and iprange2 is for the second, they aren't variables but are typed as 1.1.1.* with the correct numbers.

If anyone can shed some light on this I would be very appreciative, Thank you.
    This topic has been closed for replies.

    1 reply

    Correct answer
    June 26, 2008
    rdhelmsAuthor
    Known Participant
    June 26, 2008
    That worked like a charm, thank you!