Comments (4)
Having done some further research, it seems like it is potentially retrieving the IP address of the load balancer. The actual IP seems to be in HTTP_X_FORWARDED_FOR
rather than REMOTE_ADDR
.
from django-admin-honeypot.
@alstr Hello! You'll need a middleware to assign the IP address. There's an example in the docs:
from django-admin-honeypot.
Ah yes, that should sort it. Thanks!
from django-admin-honeypot.
Hi Derek,
thanks for your work and time.
I was wondering if you can share a full example of this code and what I mean by that is to what exactly do we have to set in the middlewares section in settings?
Does this class (class RemoteAddrMiddleware(object)) have to be in views.py file or somewhere else?
Thanks,
Rainer
from django-admin-honeypot.
Related Issues (20)
- Undefined template variables make page look different than default Django login page HOT 12
- Update for modern Django! HOT 25
- IP Address GDPR/PII Compliance HOT 3
- compatible with django 3.x? HOT 1
- ModuleNotFoundError: No module named 'admin_honeypot' HOT 1
- Honeypot HOT 1
- Emails are not sent to Admin when unauthorised accesses are made HOT 3
- ipware? HOT 3
- `notify_admins` crashes because it uses nonexistent URL `admin:admin_honeypot_loginattempt_change`
- Django 3.1+ depreciation warning for usage of ugettext() function HOT 6
- Django 3.2 migration required if using BigAutoField HOT 5
- Django 4.0 ugettext_lazy error HOT 7
- No longer used libary -ugettext_lazy change to gettext_lazy as _ HOT 5
- Django fastdev template errors on /admin route due to missing variables in the context
- cannot import name 'ugettext_lazy' from 'django.utils.translation' HOT 6
- Missing updated migrations in package HOT 1
- Release on PyPI? HOT 1
- ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation HOT 7
- Candidate for jazzband? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-admin-honeypot.