Bah, it seems to have wrapped:
SetEnvIfNoCase Referer ^hl2://192\.168\.1\.0 allow_download SetEnvIfNoCase Referer ^hl1://192\.168\.1\.0 allow_download Order Deny,Allow Allow from env=allow_download Deny from all -----Original Message----- From: J. Laws - Hi-Definition Gaming [mailto:[EMAIL PROTECTED] Sent: Thursday, February 08, 2007 10:58 AM To: hlds_linux@list.valvesoftware.com Subject: RE: [hlds_linux] Map downloading question Add an .htaccess file to the main folder of your autodownloading. Inside the .htaccess file add this (customize to your IP ranges and/or server IP): ---------------------------------------------------------------- SetEnvIfNoCase Referer ^hl2://192\.168\.1\.0 allow_download SetEnvIfNoCase Referer ^hl1://192\.168\.1\.0 allow_download Order Deny,Allow Allow from env=allow_download Deny from all ---------------------------------------------------------------- The hl2 is for any HL2 engine game (obviously) and HL1 is for any HL1 engine game. If you have lots of servers on IP ranges, just input the ranges like above with a .0 on the end to cover the whole range. If you have only one game server ip, just put in the whole ip. This will limit your autodownload files to be read, searched and downloaded via the game servers running on those ip ranges. Nobody will be able to just go to http://www.yoursite.com/autodownload and browse all of your files for leaching, nor will other game servers be allowed to mooch. You would still be able to provide anyone a direct URL to that file from HTTP, they just cannot search or view anything. J. Laws -----Original Message----- From: Stephen Nicholson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 08, 2007 10:35 AM To: hlds_linux@list.valvesoftware.com Subject: [hlds_linux] Map downloading question I redirect downloads of custom maps on my servers to a web server I control. Lately I've been noticing a few other HL2 servers leeching my bandwidth to download the maps from me. I can set up a .htaccess file to limit this but I've found something odd. I can see when players from one of my servers are downloading the maps. The entry in the webserver log has hl2://myipaddress:port as the referer. xxx.xxx.xxx.xxx - - [08/Feb/2007:15:15:18 +0000] "GET /files/source/maps/gg_boxical.bsp HTTP/1.1" 200 4786488 "hl2://152.105.66.176:27030" "Half-Life 2" I'm guessing the ones with hl2://someone elsesipaddress:port as the referer are redirects from other servers leeching the bandwidth. This would be pretty easy to knock on the head. The problem is I have a lot of entries that are obviously CSS clients but have no referer. Like this xxx.xxx.xxx.xxx - - [08/Feb/2007:14:17:11 +0000] "GET /files/source/maps/gg_bunkers_1.bsp HTTP/1.1" 200 3236916 "-" "Half-Life 2" Does anyone know what might be causing this or an easy way to make sure only players from my own servers can access the maps? I could block accesses from the useragent Half-Life 2 and no referer but I don't know if this is legitimate access or not. _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux