|
|
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
|
|
 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 •
|
|
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
|
|
|
Guest |