I've a domain where I need to accept only one url and all the other URLs should be blocked. I need to accept only /page?param=something. I'm using Nginx. Any help would be appreciated.
map $query_string $is_param {
~ param=.+ 1;
}
location ~* /page {
if ($is_param) {
allow all;
}
return 403;
}