[hlds_linux] Map downloading question

2007-02-08 Thread Stephen Nicholson

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 +] 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 +] 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


RE: [hlds_linux] Map downloading question

2007-02-08 Thread Henrik Malmberg
Some firewalls and what not filter out referrers to protect the users
privacy, so the ones with empty referrer can be anyone from any server.

Filtering the ones not from your server will make some difference at least!

- Henrik

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stephen
Nicholson
Sent: den 8 februari 2007 16:35
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 +] 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 +] 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


RE: [hlds_linux] Map downloading question

2007-02-08 Thread J. Laws - Hi-Definition Gaming
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 +] 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 +] 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


RE: [hlds_linux] Map downloading question

2007-02-08 Thread J. Laws - Hi-Definition Gaming
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 +] 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 +] 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