Dynamic download White-lists
Dynamic downloading extends the flexibility of action scripts, adding the ability to use relevance clauses to specify URLs.
As with static downloads, dynamic downloads must specify files with the confirmation of a size or sha1. However, the URL, size, and sha1 are allowed to come from a source outside of the action script. This outside source might be a manifest containing a changing list of new downloads. This technique makes it easy to access files that change quickly or on a schedule, such as antivirus or security monitors.
- On Windows systems:
- <Server Install Path>\Mirror Server\Config\DownloadWhitelist.txt
- On Linux systems:
- <Server Install Path>/Mirror Server/config/DownloadWhitelist.txt
http://.*\.site-a\.com/.*
http://software\.site-b\.com/.*
http://download\.site-c\.com/patches/JustThisOneFile\.qfx
The first line is the least restrictive, allowing any file at the entire site-a domain to be downloaded. The second line requires a specific domain host and the third is the most restrictive, limiting the URL to a single file named "JustThisOneFile.qfx". If a requested URL fails to match an entry in the white-list, the download immediately fails with status NotAvailable. A note is made in the relay log containing the URL that failed to pass. An empty or non-existent white-list causes all dynamic downloads to fail. A white-list entry of .* (dot star) allows any URL to be downloaded.