Page 1 of 1

IP-Restricted Pages

Posted: Wed May 24, 2006 7:53 pm
by Andreas
I'd like to protect a specific area (6.1.1 - 6.1.9) of my CMS MS homepage that only user which came from an IP range.

I have tested the module IPRestrictedArea, but at my 0.12.1 Version the result was a nocache error message.
The module is also not the best choice, because one can only choose a specific IP address and not an IP address range.

I need a module which gives access to the protected area only to IP addresses of the following range:
xxx.yyy.zzz.000 - xxx.yyy.zzz.063  +  aaa.bbb.ccc.000 - aaa.bbb.ccc.254

Does anybody know a module which is able to do this ?

Re: IP-Restricted Pages

Posted: Wed May 24, 2006 10:29 pm
by calguy1000
Try CustomContent

though you will also have to install the feusers module, you won't need to use it.

Re: IP-Restricted Pages

Posted: Thu May 25, 2006 3:24 pm
by Andreas
calguy1000 wrote: Try CustomContent
Thank you for your tip. It works if i have a range from 83.135.128.[0-63].

But how should i modify the template, if i have a range from
83.135.128.0 - 83.135.159.255  and also
81.209.134.[0-63] and also
149.209.134.[0-63] ?

Re: IP-Restricted Pages

Posted: Thu May 25, 2006 4:00 pm
by calguy1000
you should be able to put multiple ip ranges on the tag



all of the tests it appears (probably not tested very well though) can take multiple arguments, the entire test passes if any one of the conditions is true. 

Re: IP-Restricted Pages

Posted: Mon May 29, 2006 6:33 am
by Andreas
Great, i'm also able to create pages which are visible for multiple ranges:

like

But now this results in a new question:
Is the module CustomContent also available for the menu manager ?
I would like to show the menu only if the user is coming from the given IP address range.