Welcome, Guest. Please login or register.
Did you miss your activation email?
04 Jul 2009, 17:40

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

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: 149
Offline Offline

Posts: 4328

Location: Calgary, Canada

Gravatar

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

I support other dev-team members, and support personnel only.
--
Questions relating to my modules are answered to paying customers, or when I have the time and motivation to.
--
Please don't email me with questions unless you are one of:
  a) A dev team or support-team member
  b) an existing  customer with a valid, and current question
  c) willing to pay for some of my time.
I'm sorry it has to be this way, but if I answered everybody's questions, all of the time, I would never ever get anything done.
----------------
Don't make me angry..... you won't like me when I'm angry....
Andreas
Forum Members
**

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: 149
Offline Offline

Posts: 4328

Location: Calgary, Canada

Gravatar

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

I support other dev-team members, and support personnel only.
--
Questions relating to my modules are answered to paying customers, or when I have the time and motivation to.
--
Please don't email me with questions unless you are one of:
  a) A dev team or support-team member
  b) an existing  customer with a valid, and current question
  c) willing to pay for some of my time.
I'm sorry it has to be this way, but if I answered everybody's questions, all of the time, I would never ever get anything done.
----------------
Don't make me angry..... you won't like me when I'm angry....
Andreas
Forum Members
**

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: