Stoping bots and wget in nginx

Fabio Coatti cova at
Tue Dec 18 21:22:50 MSK 2007

Alle martedì 18 dicembre 2007, Alexis Torres Garnica ha scritto:
> Hi guys, I am new to the list. Is there a way to stop or block the bots
> access and wget to a nginx web server? tnks
> att: alex

If with "block bots" you mean "block requests based on User Agent", you can do 
this setting up something like this:

                if ($http_user_agent ~ libwww-perl ) {
                        return 400;

(just an example, of course)

Fabio "Cova" Coatti     
Ferrara Linux Users Group 
GnuPG fp:9765 A5B6 6843 17BC A646  BE8C FA56 373A 5374 C703
Old SysOps never die... they simply forget their password.

More information about the nginx mailing list