Welcome, Guest. Please login or register.
Did you miss your activation email?
06 Oct 2008, 10:38

Login with username, password and session length
Home Chat Help Search Calendar Login Register
Pages: [1]
Print
Author Topic: IP-Restricted Pages  (Read 3207 times)
0 Members and 1 Guest are viewing this topic.
Andreas
Forum Member
*

Karma: 0
Offline Offline

Posts: 47



« on: 24 May 2006, 15:53 »

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 ?
Logged
calguy1000
CMS GURU - 2nd Tier Support.
Dev Team Member
Power Poster
*****

Karma: 141
Offline Offline

Posts: 3942

Location: Calgary, Canada


Second Tier Support


WWW
« Reply #1 on: 24 May 2006, 18:29 »

Try CustomContent

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

Andreas
Forum Member
*

Karma: 0
Offline Offline

Posts: 47



« Reply #2 on: 25 May 2006, 11:24 »

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] ?

« Last Edit: 25 May 2006, 11:28 by Andreas » Logged
calguy1000
CMS GURU - 2nd Tier Support.
Dev Team Member
Power Poster
*****

Karma: 141
Offline Offline

Posts: 3942

Location: Calgary, Canada


Second Tier Support


WWW
« Reply #3 on: 25 May 2006, 12:00 »

you should be able to put multiple ip ranges on the tag

<!--customcontent: startif ip=range1,range2,range3 -->

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. 
Logged

Andreas
Forum Member
*

Karma: 0
Offline Offline

Posts: 47



« Reply #4 on: 29 May 2006, 02:33 »

Great, i'm also able to create pages which are visible for multiple ranges:

like <!--customContent: startif ip=83.135.[128-159].[0-255],81.209.134.[0-63] -->

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.

Logged
Pages: [1]
Print
Jump to: