home server fastDL

For scripting examples for learning how to use AMXX.
User avatar
Archive-Poster
Posts: 1090
Gender:
United States of America

home server fastDL

Post by Archive-Poster »

EDIT: THERE IS A NOW A METAMOD PLUGIN FOR FASTDL

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!
Attachments
fastDLserver.zip
(3.12 KiB) Downloaded 4 times

Who is online

Users browsing this forum: No registered users and 1 guest