view access by checking IP? - extranet Options
avonfpad
Posted: Wednesday, March 05, 2008 11:42:39 AM
Rank: Newbie

Joined: 3/5/2008
Posts: 1
I've read up on permission but, has anybody set view access to pages / docs by an IP checking script rather than a login? how could this be done?
I'm planing a public site with restricted sections for staff but trying to avoid them all having to login.
thanks
neehouse
Posted: Wednesday, March 05, 2008 12:22:09 PM

Rank: Umbracoholic

Joined: 7/20/2006
Posts: 1,038
Location: Charleston, West Virginia, United States
Hi Colin

A simple user control that checks server variables may be all that you need. I would consider an xml config file with a list of IP addresses / ranges. This file could be picked up by a user control to check the server variables for remote_host or remote_address (I think remote_address is the one), and compares it to the config file. If not found, it would then redirect to the node of choice.

Case

• 2007/2008 MVP • 2008/2009 MVP • Core Developer • Certified Professional Level I & II •
martinbentzen
Posted: Wednesday, March 05, 2008 1:06:44 PM
Rank: Devotee

Joined: 7/20/2006
Posts: 48
Location: Copenhagen, Denmark
I havn't tried it myself, but I've bookmarked this article, whick I think will do what you want:

http://wesley.blog.br/?p=21 (found the link in the Snippets section of Umbraco.org)

/Martin

Udblog.dk
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.