Hi Hank,
I want to help you but I can only help you with some more information, can you please tell me what the settings are that you are using in Proxy & VPN Blocker and a list of the other plugins you are using if possible.
Thank you,
Rick.
Thread Starter
Anonymous User 17894003
(@anonymized-17894003)
I think it has to do with the litespeed cache. PHP is also cached there. When i set Off PHP Cache the Plugin works Correct.
However, it costs performance of the page without a PHP cache.
I think that’s the problem.
OPCache
LiteSpeed Cache
Are all cache plugin for PHP that many use.
LiteSpeed Cache say:
Some themes and plugins add resources via a PHP request. Caching these pages may improve server performance by avoiding unnecessary PHP calls.
Settings:
https://prnt.sc/sqj067
https://prnt.sc/sqj0bs
https://prnt.sc/sqj0gd
Plugin:
https://prnt.sc/sqj0oh
https://prnt.sc/sqj0t3
-
This reply was modified 5 years, 12 months ago by
Anonymous User 17894003.
-
This reply was modified 5 years, 12 months ago by
Anonymous User 17894003.
Cache is the likely cause here, unfortunately the way caching plugins function means it not possible for the plugin to run the checking code everywhere because the caching plugin generates a static version of all your PHP pages and serves that to the visitor without ever touching WordPress unless it has to.
Some Caching Plugins provide a way to use Late init meaning the caching stuff only runs after other plugins have had a chance to load, but this mostly defeats the purpose of having a caching plugin in the first place.
There’s usually a way in Caching Plugins to exclude certain pages/urls from being cached but this would have to be added to each time you add a page in Proxy & VPN Blocker’s pages/posts list and include any login/user related pages you have if it’s a membership based site. In LiteSpeed Plugin settings this would be under Excludes.
Thread Starter
Anonymous User 17894003
(@anonymized-17894003)
The page
24 hour test
Request blocked
We already excluded pages from the cache, but that doesn’t fix the problem.
Does the login also have to be removed from the cache?
I wouldn’t say so, unless it’s a custom login page though the actual process of logging in or registering via a Proxy/VPN should still get blocked, I guess this doesn’t always happen either?
Thread Starter
Anonymous User 17894003
(@anonymized-17894003)
Excluding the page from the cache does nothing.
The manufacturers of LiteSpeedCache (WordPress plugin) also see no possibility that this plugin works with the cache of LiteSpeed without problems.
Thread Starter
Anonymous User 17894003
(@anonymized-17894003)
After consulting the developer of LS Cache Plugin, there is no way that your plugin will work with cache.
You can read here the Thread
https://ww.wp.xz.cn/support/topic/php-cache-exclude/
Hi,
I use simple-cache plugin and other scipt to block vpn, and solve this problem including
the script before all settings into /wp-content/advanced-cache.php
I think the mechanism is no different because it blocks before the cache goes into action.
Best regards π