Skip to content

feat(ip-restriction): support 404 response code#12076

Merged
Baoyuantop merged 1 commit intoapache:masterfrom
papdaniel:ip-restriction-404
Mar 26, 2025
Merged

feat(ip-restriction): support 404 response code#12076
Baoyuantop merged 1 commit intoapache:masterfrom
papdaniel:ip-restriction-404

Conversation

@papdaniel
Copy link
Contributor

@papdaniel papdaniel commented Mar 21, 2025

Description

Support 404 response code to hide the route from blacklisted/not whitelisted sources

Fixes #12056

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Mar 21, 2025
@papdaniel
Copy link
Contributor Author

I think making response code configurable to 404 is enough. Should we support any response codes, or any 4xx codes?

@Baoyuantop
Copy link
Contributor

Personally I think any 4xx code should be configurable, looking forward to other more comments.

@Baoyuantop Baoyuantop requested review from AlinsRan and membphis March 25, 2025 02:15
@Baoyuantop Baoyuantop merged commit 29b42e8 into apache:master Mar 26, 2025
34 checks passed
laz-xyr pushed a commit to laz-xyr/apisix that referenced this pull request Jun 19, 2025
Co-authored-by: papdaniel <papfdani@gmailcom>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: As a user, I want to be able to set ip-restriction plugin http response code to 404

4 participants