2808 explained code solutions for 75 technologies


nginxAccessing query parameters


server {
  location / {
    if ( $arg_something = test ) {
      return 403 sorry;
    }
  }
}ctrl + c
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