<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Messaggio</TITLE>
<META content="MSHTML 6.00.2900.2604" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=835200709-17032005><FONT face=Arial size=2>Hi
list,</FONT></SPAN></DIV>
<DIV><SPAN class=835200709-17032005><FONT face=Arial size=2>I have a layer with
ortophotos: I can legally use these ortophotos in Intranet application, but I
cannot/won't show them I someone browses the map from
Internet.</FONT></SPAN></DIV>
<DIV><SPAN class=835200709-17032005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=835200709-17032005><FONT face=Arial size=2>I use cgi-bin
Mapserver on a server that is both on the Intranet and on the
Internet.</FONT></SPAN></DIV>
<DIV><SPAN class=835200709-17032005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=835200709-17032005><FONT face=Arial size=2>Is there a way to
block the visualization of ortophotos layer if the request comes from the
Internet?</FONT></SPAN></DIV>
<DIV><SPAN class=835200709-17032005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=835200709-17032005><FONT face=Arial size=2>Unfortunately, I
cannot use two different templates (one with "ortophotos checkbox", and one
without it) since everyone can "create" his own map using cgi-bin Mapserver
syntax (and activate/deactivate layers even if they are not in the
template).</FONT></SPAN></DIV>
<DIV><SPAN class=835200709-17032005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=835200709-17032005><FONT face=Arial size=2>Perhaps this is a
more Apache-related question...</FONT></SPAN></DIV>
<DIV><SPAN class=835200709-17032005><FONT face=Arial size=2>I can configure my
Apache with many VirtualHosts (based on the ServerName, that is different if
accessed from Intranet or from Internet), but I need ad idea to prevent
Mapserver reading certain files (or certain directories) if invoked from
Intranet or from Internet.</FONT></SPAN></DIV>
<DIV><SPAN class=835200709-17032005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=835200709-17032005><FONT face=Arial size=2>Can you help
me?</FONT></SPAN></DIV>
<DIV><SPAN class=835200709-17032005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=835200709-17032005> <FONT face=Arial
size=2>Daniele</FONT></SPAN></DIV>
<DIV><SPAN class=835200709-17032005><FONT face=Arial
size=2></FONT></SPAN> </DIV></BODY></HTML>