Re: [hlds] Re: hlds digest, Vol 1 #3748 - 12 msgs
Jason Benoit wrote: Ok.. I try to make this .htaccess file only to be told that I have to have a file name. Can someone please spell out to me what it is I need to do? I understand the contents need to be formatted like this: SetEnvIfNoCase Referer ^hl2://195\.20\.108\.36 allow_download Order Deny,Allow Allow from env=allow_download Deny from all If my folder I download from is "cstrike/maps,models,materials,etc;" You put this file in cstrike, right? And I replace "^hl2://195\.20\.108\.36 allow_download" with my ip in the slashes. -- -Alden Okay.. it sounds like you're creating the file within Windows. To give it the correct name, in Notepad, click 'File' > 'Save As'. Change the 'Save as type' box to 'All Files' and enter ".htaccess" (including the quotes) in to the 'File name' box. It should then save fine in to your /cstrike/ directory. On a UNIX based (Linux / BSD etc) Apache install, this will then also apply to all subdirectories. It should be the same for a Windows Apache installation. As for the contents, you're correct. Just substitute the IP address for your server's own. HTH Subdude2k ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] VALVe hide our sv_downloadurl paths!
Mikee wrote: Subdude2k, your answer finally does work. I really appreciate your posting this, as the SetEnvIf Referrer that Simon said would not work in the .htaccess file. IMHO, every server admin should do this who is using a web based downloadurl that has bandwidth limits. One last answer that I confirmed works if you have multiple servers, you can define each IP on its own line. This is now my .htaccess file: SetEnvIfNoCase Referer ^hl2://64\.156\.56\.122 allow_download SetEnvIfNoCase Referer ^hl2://67\.18\.241\.74 allow_download SetEnvIfNoCase Referer ^hl2://67\.18\.241\.75 allow_download Order Deny,Allow Allow from env=allow_download Deny from all Glad I could help. :) Subdude2k ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] VALVe hide our sv_downloadurl paths!
The Referer works fine and has been doing so for a while now. I'm using .htaccess files on my Apache web server to only allow access to the hosted maps and files from our own CS Server. Here's the contents of my .htaccess file -- SetEnvIfNoCase Referer ^hl2://195\.20\.108\.36 allow_download Order Deny,Allow Allow from env=allow_download Deny from all -- HTH Subdude2k ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds