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

✨ Add IP Restriction Middleware #19

Open
ARYAN-NIKNEZHAD opened this issue Jul 27, 2024 · 0 comments
Open

✨ Add IP Restriction Middleware #19

ARYAN-NIKNEZHAD opened this issue Jul 27, 2024 · 0 comments
Labels
demand request a new feature

Comments

@ARYAN-NIKNEZHAD
Copy link
Contributor

Requirements

  1. Middleware Functionality:

    • Create a middleware class IPRestrictionMiddleware that will process each request and restrict access based on IP addresses.
    • Support specifying allowed and denied IP addresses via settings.
    • Provide clear HTTP responses when access is denied.
  2. Integration:

    • Ensure compatibility with existing authentication and permission systems.

Acceptance Criteria

  • The middleware should be easy to configure and integrate with existing Django settings.
  • It should support both allow-lists (IP addresses that are permitted) and deny-lists (IP addresses that are blocked).
  • Access should be restricted based on the client’s IP address, and appropriate HTTP responses should be returned.
@sepehr-akbarzadeh sepehr-akbarzadeh added the demand request a new feature label Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demand request a new feature
Projects
None yet
Development

No branches or pull requests

2 participants