Title: block proxy servers
Last modified: April 27, 2021

---

# block proxy servers

 *  Resolved [margomm](https://wordpress.org/support/users/margomm/)
 * (@margomm)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/block-proxy-servers/)
 * Hello!
    I have a question: how to protect the site from visits through proxy 
   servers? I found a way to protect:[https://perishablepress.com/block-tough-proxies/](https://perishablepress.com/block-tough-proxies/)`
   <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
   >
 * How correct is this?
 * Can you implement a proxy protection option in Defender Security?
    The site is
   being attacked to reduce behavioral factors. They come from spoofed IPs and referrer.
   I can’t block them. Access to bad bots is blocked on the server. I applied all
   the recommended settings in Defender Security. I suspect that the proxy should
   be blocked.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * (@wpmudevsupport13)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/block-proxy-servers/#post-14370748)
 * Hi [@margomm](https://wordpress.org/support/users/margomm/)
 * I hope you are doing good today.
 * I pinged our Defender Team to review your query. We will post an update here 
   as soon as more information is available.
 * Kind Regards,
    Kris
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [5 years ago](https://wordpress.org/support/topic/block-proxy-servers/#post-14498380)
 * Hi [@margomm](https://wordpress.org/support/users/margomm/)
 * Sorry for the delay here.
 * The htacess sounds to do the trick, I suggest testing on a lab site and check
   how it goes before applying to live site.
 * For the Defender, we sent it as a feature request to our developers, I am afraid
   we can’t give an estimated time or if we will implement it but please keep eyes
   on the plugin updates.
 * Best Regards
    Patrick Freitas
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/block-proxy-servers/#post-14576467)
 * Hi [@margomm](https://wordpress.org/support/users/margomm/)
 * I hope you are doing well and safe!
 * We haven’t heard from you in a while, I’ll mark this thread as resolved.
 * Feel free to let us know if you have any additional question or problem.
 * Best Regards
    Patrick Freitas

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘block proxy servers’ is closed to new replies.

 * ![](https://ps.w.org/defender-security/assets/icon-256x256.gif?rev=3435930)
 * [Defender Security - Malware Scanner, Login Security & Firewall](https://wordpress.org/plugins/defender-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/defender-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/defender-security/)
 * [Active Topics](https://wordpress.org/support/plugin/defender-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/defender-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/defender-security/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/block-proxy-servers/#post-14576467)
 * Status: resolved