# Blocking proxies

**URL:** <https://www.ruby-forum.com/t/blocking-proxies/201317>\
**Category:** NGINX\
**Created:** [January 5, 2011, 7:22am UTC](https://www.ruby-forum.com/t/blocking-proxies/201317 "2011-01-05T07:22:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [January 5, 2011, 7:22am UTC](https://www.ruby-forum.com/t/blocking-proxies/201317/1 "2011-01-05T07:22:39Z")

</div>

Hi guys,

To reduce spam and for business reasons, we’ve decided to restrict the  
number of web-proxy who access our site. Previously, on apache, we used  
this technique(see below) and later switched to blockscript to restrict  
users.

> **[How to Block Proxy Servers via htaccess | Perishable Press](https://perishablepress.com/how-to-block-proxy-servers-via-htaccess/)**
>
> Presenting an effective method for blocking proxy servers from your website using a small series of htaccess directives to blacklist typical proxy protocols..

I’m curious to understand how the apache rules can be translated into  
nginx compatible format. Any assistance would be greatly appreciated!  
Thanks a lot.

Doug

Posted at Nginx Forum:

> **[Blocking proxies](https://forum.nginx.org/read.php?2,163611,163611#msg-163611)**
>
> Hi guys, To reduce spam and for business reasons, we've decided to restrict the number of web-proxy who access our site. Previously, on apache, we used this technique(see below) and later switched to blockscript to restrict users....
