Skip to content

Commit b2635e4

Browse files
Merge pull request #12 from Crowdhandler/wp-wc-excludes
Added wordpress and woocommerce exclusions
2 parents c40d542 + f240689 commit b2635e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

includes/class-crowdhandler-gatekeeper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ public function checkRequest()
4545

4646
$api = new PublicClient($this->options['crowdhandler_settings_field_public_key']);
4747
$this->gateKeeper = new GateKeeper($api);
48-
48+
4949
$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)/"
50+
"/^((?!.*\?).*(\.(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=.+/"
5151
);
5252

5353
$isHostServer = $this->gateKeeper->ip === $_SERVER["SERVER_ADDR"];

0 commit comments

Comments
 (0)