Hi aaPanel,
I'm having a tough time configuring limit_req_zone to work only on custom url (for example) I'd like to target only search path for example this > domain.com/?s= <
My code is not working properly it is targeting /?s=, but it's targeting homepage as well which I don't like to,
here's my code:
limit_req_zone $binary_remote_addr zone=myzone:100m rate=2r/m;
location ~ ^/(?s)$ {
limit_req zone=myzone burst=50 nodelay;
}
so how I can target only ?s=
Any help is appreciated alot!
Thanks!