Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
SsrfBlockedException
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\ResourceLoader\Exception;
6
7/**
8 * Thrown by {@see \Phpdftk\ResourceLoader\SsrfGuard::assertSafe} when
9 * a URL violates the SSRF policy — unsafe scheme, empty host, host
10 * resolves to a literal private / loopback / link-local / multicast /
11 * reserved IP, or is otherwise outside the configured allowlist.
12 *
13 * Callers may want to surface the message verbatim in error
14 * responses since it documents the exact policy violation.
15 */
16final class SsrfBlockedException extends \RuntimeException {}