Block spefic URL
Proline29
nginx-forum at forum.nginx.org
Mon Nov 4 11:07:07 UTC 2019
Hello,
I'm trying to block such kind of URL
https://mysite.com/#id=826c99368cc93a894267703e0fc2ed46
Tried
if ( $request_uri = https://mysite.com/#id=826c99368cc93a894267703e0fc2ed46)
{
return 444;
}
location ~* https://mysite.com/#id=826c99368cc93a894267703e0fc2ed46 {
deny all;
}
if ( $query_string = "826c99368cc93a894267703e0fc2ed46" ) {
return 404;
}
No one of this solution didn't help
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,286086,286086#msg-286086
More information about the nginx
mailing list