• As this author suggest add below htaccess code & edit header.php to block proxy access. Is that possible this features to be added at coming release?

    http://wordpressapi.com/block-proxy-servers-to-access-wordpress-site/

    You just need to add following code into your .htaccess file. You can open your .htaccess apache configuration file from wordpress root folder.

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:VIA} !^$ [OR]
    RewriteCond %{HTTP:FORWARDED} !^$ [OR]
    RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR]
    RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR]
    RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [OR]
    RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR]
    RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]
    RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$
    RewriteRule .* – [F]
    </IfModule>

    After adding above code you must check your wordpress site. Check the your every pages of your site. Check your sites pages on atleast on three PCs so you will sure about your site and above code.

    Open your header.php file which you find in your wordpress theme folder.

    <?php if(@fsockopen($_SERVER[‘REMOTE_ADDR’], 80, $errstr, $errno, 1)) die(“Proxy access not allowed”); ?>

    https://ww.wp.xz.cn/plugins/better-wp-security/

The topic ‘[suggesstion] block proxy access’ is closed to new replies.