Welcome! Log In Create A New Profile

Advanced

Blocking user_agents' problem

Posted by Natsuuki 
Blocking user_agents' problem
September 07, 2011 01:15PM
Hi, I'm using nginx/1.0.6 at Debian, with PHP-CGI for 2 sites, the thing is I've specified "if ($http_user_agent ~ ZmEu) { return 503;}" (obviously with spaces) only for forbidding those bots, but it only works at one site.
Also I attach my conf, thanks.
Attachments:
open | download - test.conf (1.4 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 198
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready