Share » Forums » Setup & design » Manu limited visibility from some IP...

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!

36 542 Users on board!

Forums menu