On 7/06/2005 12:41 p.m., Alfred Reynolds wrote:
And bam, already done. Each request from Source clients to your web
server contains the following line:
Referer: hl2://<server ip>

You should be able to use some kind of apache plugin to act upon this
information.

- Alfred


No special modules needed - the following apache config should do the
trick (note I haven't tested this):

<Directory /path/to/your/maps/dir>
        SetEnfIf  Referer  ^hl2://1\.2\.3\.4  MY_SERVER=1
        Order Allow,Deny
        Allow from env=MY_SERVER
        Deny from all
</Directory>

Where "1\.2\.3\.4" is the IP of your server with \ in front of each dot.

Note this is not totally secure since anyone can spoof the Referer
header but it will stop others from using your sv_downloadurl for their
clients.

-Simon

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds

Reply via email to