We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f501a3 commit 0422e4dCopy full SHA for 0422e4d
src/Plugin/BlockListPlugin.php
@@ -27,6 +27,16 @@ function onBeforeRequest(ProxyEvent $event){
27
return;
28
}
29
30
+ // url filter!
31
+ $url_block = (array)Config::get('blocklist.url_block');
32
+ foreach($url_block as $ub){
33
+
34
+ if(strpos($url, $ub) !== false){
35
+ throw new \Exception("Error: Access to {$url} has been blocked!");
36
+ return;
37
+ }
38
39
40
/*
41
1. Wildcard format: 1.2.3.*
42
2. CIDR format: 1.2.3/24 OR 1.2.3.4/255.255.255.0
0 commit comments