# Denyhost howto

**URL:** <https://www.ruby-forum.com/t/denyhost-howto/189749>\
**Category:** NGINX\
**Created:** [June 7, 2010, 5:07am UTC](https://www.ruby-forum.com/t/denyhost-howto/189749 "2010-06-07T05:07:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quan\_Zhou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/edb3f5/32.png) [@Quan\_Zhou](https://www.ruby-forum.com/u/Quan_Zhou)\
**Post date:** [June 7, 2010, 5:07am UTC](https://www.ruby-forum.com/t/denyhost-howto/189749/1 "2010-06-07T05:07:17Z")

</div>

Hi all,

I’m trying to ban a list of ip on my host by a file in following  
format:

Address Netmask

How can I do that?

## Thanks

Individuals who have received this information in error or are not  
authorized to receive it must promptly return or dispose of the  
information and notify the sender. Those individuals are hereby  
notified that they are strictly prohibited from reviewing, forwarding,  
printing, copying, distributing or using this information in any way.

---

<div class="post-metadata">

**Author:** ![Quan\_Zhou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/edb3f5/32.png) [@Quan\_Zhou](https://www.ruby-forum.com/u/Quan_Zhou)\
**Post date:** [June 7, 2010, 5:10am UTC](https://www.ruby-forum.com/t/denyhost-howto/189749/2 "2010-06-07T05:10:47Z")

</div>

hi

you can use the http access module:  
[http://wiki.nginx.org/NginxHttpAccessModule](http://wiki.nginx.org/NginxHttpAccessModule)

---

<div class="post-metadata">

**Author:** ![Quan\_Zhou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/edb3f5/32.png) [@Quan\_Zhou](https://www.ruby-forum.com/u/Quan_Zhou)\
**Post date:** [June 7, 2010, 5:43am UTC](https://www.ruby-forum.com/t/denyhost-howto/189749/3 "2010-06-07T05:43:33Z")

</div>

Thanks man, I’ll check it out.

On Mon, Jun 7, 2010 at 11:10 AM, Mauro Stettler  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > * * *
> > 
> > nginx mailing list  
> > [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> > [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)

–  
Individuals who have received this information in error or are not  
authorized to receive it must promptly return or dispose of the  
information and notify the sender. Those individuals are hereby  
notified that they are strictly prohibited from reviewing, forwarding,  
printing, copying, distributing or using this information in any way.
