Property SavedRangesPath
SavedRangesPath
Gets or sets the path of the file that Cloudflare's IP ranges are saved to after each download, and read from at startup when they cannot be downloaded. When DownloadRanges is false, the ranges are only read from this file. Relative paths are resolved against the application's content root. Required: the application fails to start if this is not set.
Declaration
public string? SavedRangesPath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
If the file cannot be written, downloaded ranges are still used.
The file can be created in advance, for example for a new server, a container image or a read-only deployment. It contains one IP range per line
in CIDR notation, like the lists that Cloudflare publishes, and must end with a line that contains only # end, which shows that the file is
complete. Blank lines and other lines that start with # are ignored. A file without the end line is not used, so a file that is read while
it is still being written is never partly trusted.