Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-3-5-sonnet-20241022· AnthropicHugging Face LMArena Human Preference 140K

nginx config. A location that only works for the POST method

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Qwenqwen3-30b-a3b’s answer.
  1. User

    nginx config. A location that only works for the POST method

  2. Claude Assistant

    Here's an nginx location block configuration that only allows POST requests:

    location /your-path {
        limit_except POST {
            deny all;
        }
        
        # Your other configuration directives here
        # For example:
        proxy_pass http://backend;
    }
    

    This configuration will:

    • Allow POST requests to /your-path
    • Deny all other HTTP methods (GET, PUT, DELETE, etc.)
    • Return HTTP 405 (Method Not Allowed) for non-POST requests

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.