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?