Hello, I’m here for the first time.
I use MainWP and think it is a great solution for managing WP-based websites. I have such a problem that I wanted to block proxy traffic by adding functions.php to the theme directory of the following rule:
function shapeSpace_block_proxy_visits() {
if (@fsockopen($_SERVER[‘REMOTE_ADDR’], 80, $errstr, $errno, 1)) {
die(‘Proxy access not allowed’);
}
}
add_action(‘after_setup_theme’, ‘shapeSpace_block_proxy_visits’);
however, the connection to the child site has been broken and cannot reconnect it. After deleting the rule, communication between the WP page and MainWP is possible. Can you help add the MainWP exception to the rule, or have another idea on how to block it?
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
WordPress® is a registered trademark of the WordPress Foundation, and WooCommerce® is a registered trademark of WooCommerce, Inc. MainWP is an independent product and is not affiliated, associated, or endorsed by the WordPress Foundation, WooCommerce, Inc., or Automattic Inc., except where noted under the Jetpack® API and Trademark License Agreement. All product names, logos, and brands are property of their respective owners and are used for identification purposes only.