Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 428 Bytes

accessing-query-parameters.md

File metadata and controls

19 lines (15 loc) · 428 Bytes

Accessing query parameters

server {
  location / {
    if ( $arg_something = test ) {
      return 403 sorry;
    }
  }
}
  • server { - virtual server configuration block
  • location / { - default location block
  • $arg_something - gets something query string parameter value (e.g. example.org/?something=test)
  • test - sample value to check against
  • return 403 sorry; - return 403 header