We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c40d542 + f240689 commit b2635e4Copy full SHA for b2635e4
1 file changed
includes/class-crowdhandler-gatekeeper.php
@@ -45,9 +45,9 @@ public function checkRequest()
45
46
$api = new PublicClient($this->options['crowdhandler_settings_field_public_key']);
47
$this->gateKeeper = new GateKeeper($api);
48
-
+
49
$this->gateKeeper->setIgnoreUrls(
50
- "/^(.*\.(ico|css|js|json|pdf|xml|eot|ott|ttf|woff|woff2|gif|jpg|png|svg|avi|mov|mp4|mpeg|mpg|wmv|ogg|ogv)(\/*)$)|(\/wp-admin)|(\/wp-content)|(\/wp-includes)|(\/wp\-cron\.php)/"
+ "/^((?!.*\?).*(\.(avi|css|eot|gif|ico|jpg|jpeg|js|json|mov|mp4|mpeg|mpg|og[g|v]|pdf|png|svg|ttf|txt|wmv|woff|woff2|xml))$)|(?!.*\?.*w[c|p]-.+).*(^.*w[c|p]-.+)|^((?!.*\?.*xmlrpc\.php).*xmlrpc.php)|\?rest_route=.+/"
51
);
52
53
$isHostServer = $this->gateKeeper->ip === $_SERVER["SERVER_ADDR"];
0 commit comments