Manu limited visibility from some IP adresess

Manu limited visibility from some IP adresess

Thursday 12 January 2006 12:29:39 am - 1 reply

Modified on Thursday 12 January 2006 12:36:32 am by Marek Woda

Author Message

Felix Laate

Thursday 12 January 2006 2:17:02 am

Hi Marek!

Can you use SSI? If yes, then you could get the IP with:

var ip = '<!--#echo var="REMOTE_ADDR"-->'

if (ip == '172.30.34.123') {
   document.write(' _NAVIGATION_FULL_CODE_');
}
else {
  document.write(' _NAVIGATION_LIMITED_CODE_'); 
}

You could e.g. have two tpl-files of which you include the right one.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.