Code Monkey home page Code Monkey logo

Comments (4)

un33k avatar un33k commented on May 29, 2024 1

Version 2.0 has Proxy Count support added. Version 1.x is deprecated, however, I don't have any plans in removing the api. Cheers

from django-ipware.

un33k avatar un33k commented on May 29, 2024

@aleksihakli as per my explanation here, nothing stops a hacker to set up additional proxies to match the proxy count.

Please provide a use case that we need a proxy count on top of the already supported trusted proxy list in order for me to include such a feature in the next release. thx.

from django-ipware.

un33k avatar un33k commented on May 29, 2024

Unofficial -- Look at the source code for get_client_ip()

from django-ipware.

aleksihakli avatar aleksihakli commented on May 29, 2024

@un33k yeah, I thought of it more as a convenience feature, I'm aware that attackers can do DNS rebinding and proxy injection on the server end or just forge headers by hand in the client end.

The case is indeed that I'm getting a ton of unwanted traffic on AWS with no proxies set at all in the request headers and want to discard that, and am using proxy count in a middleware to cut the unwanted noise, and think that this is useful for tracking bots and improperly configured clients.

In Axes it's nice to also get notified of someone banging the authentication backend with improper requests :)

I think the 2.0 beta release looks good for the purpose and the trusted proxies approach is good for semi-static proxy IPs. It can be hard to figure out proxy IPs in elastic environments where load balancers have dynamically changing IP ranges, so the proxy count is more usable there.

Just wanted to raise the question up for discussion.

from django-ipware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.