<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi Steve,<br>I haven't seen a reply here yet so I thought I throw in my 2 cents. I don't know of anything specific in MapServer that would do what you're looking for. But many/most WMS services are run through a wrapper script (php or server-side script of your choice). It would be pretty easy to put an if statement checking who the requesting machine is, and limit it to be a the host machine. You could also return a 403 error for requests you want to deny or re-direct to your application. This is how I would most likely tackle this. <br><br><span>Alternatively, the easiest  option would be  to state the limitation in your access/usage constraints (Only to be viewed through <a target="_blank" href="http://your">http://your</a> app.com) in the service metadata. The easiest, though possibly the
 least effective. </span><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br>I hope this helps, <br><br>Josh<br><br><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><b><span style="font-weight: bold;">From:</span></b> "Steve.Toutant@inspq.qc.ca" &lt;Steve.Toutant@inspq.qc.ca&gt;<br><b><span style="font-weight: bold;">To:</span></b> mapserver-users@lists.osgeo.org<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, October 13, 2009 12:49:59 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [mapserver-users] Control access to WMS<br></font><br>
<br><font face="sans-serif" size="2">Hi,</font>
<br><font face="sans-serif" size="2">I defined a WMS Raster layer that I
use in my OpenLayers/GeoExt apps,</font>
<br><font face="sans-serif" size="2">I would like to control the access to
this WMS, so people can use it via my application, but can not "call"
the WMS to use it in their client application. The reason is there is a
"context" that comes with this WMS. Without it the data can be
misinterpreted.</font>
<br>
<br><font face="sans-serif" size="2">I already posted this thread on OpenLayers
list. It seems that the solution could be on the server side with Apache.
Someone suggested to limit the access with a user and password or other
functionality with Apache.</font>
<br>
<br><font face="sans-serif" size="2">My application will be public so there
is no user and password but I still need to control the access to this
particular WMS layer.</font>
<br><font face="sans-serif" size="2">Is there something I can control using
MapServer?</font>
<br>
<br><font face="sans-serif" size="2">thanks for your help!</font>
<br><font face="sans-serif" size="2">Steve</font>
<br><font face="sans-serif" size="2"><br>
</font>
<p><font size="3">&nbsp; </font>
</p><p>
<br>
<br></p></div></div></div></body></html>