-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat: As a user, I want to be able to set ip-restriction plugin http response code to 404 #12056
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
Comments
I wanted to contribute, but spent a few hours to make the (any existing) tests run locally, but didn't succeed.. Followed these docs: |
Hi @papdaniel, from the description, I didn't know what kind of errors you encountered. I have two ideas:
|
Hello @juzhiyuan!
|
Maybe try increasing the |
Thank you, that was it. I also needed to pull git submodules to make it work |
Hi @papdaniel, thank you for your PR. I understand that you want to hide any hints to secure your endpoints, but I'm not sure if we really need this option inside APISIX core codes (cc @bzp2010 @moonming). Could you share any references that also support this feature? Any links would be helpful. I know some organizations would create a repository with a specific plugin to enable the feature dynamically. |
Hi @juzhiyuan! |
That's right, we hope APISIX can be more flexible to meet the needs of different users |
Description
Now the default and only response code is 403 in ip-restriction plugin. I'd like to set it to 404 to hide the endpoints from black-listed/not white-listed sources, to not give the attackers a hint that there are some resources that they don't have access to.
The text was updated successfully, but these errors were encountered: