All pastes #424664 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-04 22:57 UTC
rendered paste body
Using HTTP/FTP Download Support (Server)
    You can enable redirected downloads on your server even if it's not
    an ioquake3 server.  You simply need to use the 'sets' command to put
    the sv_dlURL cvar into your SERVERINFO string and ensure sv_allowDownloads
    is set to 1

    sv_dlURL is the base of the URL that contains your custom .pk3 files
    the client will append both fs_game and the filename to the end of
    this value.  For example, if you have sv_dlURL set to
    "http://ioquake3.org", fs_game is "baseq3", and the client is
    missing "test.pk3", it will attempt to download from the URL
    "http://ioquake3.org/baseq3/test.pk3"

    sv_allowDownload's value is now a bitmask made up of the following
    flags:
      1 - ENABLE
      2 - do not use HTTP/FTP downloads
      4 - do not use UDP downloads
      8 - do not ask the client to disconnect when using HTTP/FTP

    Server operators who are concerned about potential "leeching" from their
    HTTP servers from other ioquake3 servers can make use of the HTTP_REFERER
    that ioquake3 sets which is "ioQ3://{SERVER_IP}:{SERVER_PORT}".  For,
    example, Apache's mod_rewrite can restrict access based on HTTP_REFERER.