Welcome! Log In Create A New Profile

Advanced

Re: Block spefic URL

Aleksandar Lazic
November 04, 2019 08:30AM
Hi.

Am 04.11.2019 um 12:07 schrieb Proline29:
> 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

As '#id=826c99368cc93a894267703e0fc2ed46' is a fragment I think the part does
not reach the server as maxim mentioned in the below answer.

https://forum.nginx.org/read.php?2,49075,49079

What do you see when you activate the debug log?

Regards
Aleks

> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,286086,286086#msg-286086
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Block spefic URL

Proline29 November 04, 2019 06:07AM

Re: Block spefic URL

Aleksandar Lazic November 04, 2019 08:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 261
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready