Raised This Month: $ Target: $400
 0% 

home server fastDL


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
arC`
Member
Join Date: May 2005
Old 06-18-2025 , 23:04   home server fastDL
Reply With Quote #1

here's a small http server in Go that will serve nothing but fastDL files to HL clients (i hope)

it restricts downloads by filetype, UA, and connection type, and has rate limiting to prevent spam

if someone tries to hit a valid filetype with anything other than half-life, they should get a 403

only allows browsers to touch index.htm in the root directory, and disallows directory listing anywhere else

prints logfile to same directory

you will have to edit lines 18 and 19 in the source to config your desired port and root directory, and either build to exe or run it via shell

then just point your sv_downloadurl to "http://your.ip.add.ress:port#/path/to/moddir/"

is this a good idea? idk probably not lol, but it's better than running a generic http server if you're bent on not duplicating your files—caveat emptor

note: attached is a 7zip file with the SOURCE CODE inside, there is NO EXECUTABLE!
Attached Files
File Type: 7z fastDLserver.7z (2.9 KB, 268 views)
__________________
(𝝺)

Last edited by arC`; 06-18-2025 at 23:10.
arC` is offline
Send a message via AIM to arC`
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-19-2025 , 00:26   Re: home server fastDL
Reply With Quote #2

If you're just doing basic testing, you can use a traditional web server (e.g. Apache) and not need to duplicate your files at all (via symbolic links). If it's a server for actually playing games with other people, I would actually prefer that the files on the game server and the files on the web server are not linked in any way.

Regarding the source code, no GitHub repo?
__________________

Last edited by fysiks; 06-19-2025 at 00:26.
fysiks is offline
arC`
Member
Join Date: May 2005
Old 06-19-2025 , 20:00   Re: home server fastDL
Reply With Quote #3

I use git locally, and just never publish anything

I like sharing stuff here for the 3 people who might need it, but that's about it haha
__________________
(𝝺)

Last edited by arC`; 06-19-2025 at 20:00.
arC` is offline
Send a message via AIM to arC`
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-19-2025 , 22:55   Re: home server fastDL
Reply With Quote #4

Fair enough.
__________________
fysiks is offline
RobDyrdekNW
New Member
Join Date: Jun 2025
Location: Kettering, Ohio, USA
Old 07-03-2025 , 13:13   Re: home server fastDL
Reply With Quote #5

Your idea is solid for a lightweight, purpose-built fastDL server tailored for HL clients. Restricting file types, enforcing user-agent rules, disallowing directory listing, and adding rate limiting are smart security measures. It's certainly better than using a generic HTTP server if you want tight control without duplication. Just ensure your server is properly maintained and hardened against abuse. For broader adoption, consider documenting config/edit instructions clearly and testing across client versions. Nice job overall.
RobDyrdekNW is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:04.


Powered by vBulletin®
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Theme made by Freecode