Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex rule problem using "start with" #488

Open
MarcoAzk opened this issue Sep 4, 2024 · 0 comments
Open

Regex rule problem using "start with" #488

MarcoAzk opened this issue Sep 4, 2024 · 0 comments

Comments

@MarcoAzk
Copy link

MarcoAzk commented Sep 4, 2024

Hello everyone
Now i have a rule like this:
{
"Endpoint": "get:/api/v1/rc/*",
"Period": "1m",
"Limit": 10
},
The calls can be something like /api/v1/rc/work_1, /api/v1/rc/work_2, ... /api/v1/rc/work_n and so on.
In this way any request is counted as unique, I need to limit all requests that starts with "work_", somewhat like:
{
"Endpoint": "get:/api/v1/rc/^work_*",
"Period": "1m",
"Limit": 10
},
But this is not working to me.
Is possible? Any suggestion please?

Marco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant