Skip to content

Commit 151eb22

Browse files
committed
Add HTTP_CF_CONNECTING_IP to ip header list
1 parent f32da14 commit 151eb22

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 6.0.5
2+
3+
Enhance:
4+
- Add `HTTP_CF_CONNECTING_IP` to list of known ip headers (Adam M.)
5+
- Remove `HTTP_VIA` header support (unreliable IP information) (@yourcelf)
6+
- Up-version python-ipware to 2.0.3
7+
18
# 6.0.4
29

310
Enhancement:

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ Please use ipware `ONLY` as a complement to your `firewall` security measures!
6464
```python
6565
# The default meta precedence order (update as needed)
6666
IPWARE_META_PRECEDENCE_ORDER = (
67-
"X_FORWARDED_FOR", # AWS ELB (default client is `left-most` [`<client>, <proxy1>, <proxy2>`])
67+
"X_FORWARDED_FOR", # Load balancers or proxies such as AWS ELB (default client is `left-most` [`<client>, <proxy1>, <proxy2>`])
6868
"HTTP_X_FORWARDED_FOR", # Similar to X_FORWARDED_TO
6969
"HTTP_CLIENT_IP", # Standard headers used by providers such as Amazon EC2, Heroku etc.
7070
"HTTP_X_REAL_IP", # Standard headers used by providers such as Amazon EC2, Heroku etc.
7171
"HTTP_X_FORWARDED", # Squid and others
7272
"HTTP_X_CLUSTER_CLIENT_IP", # Rackspace LB and Riverbed Stingray
7373
"HTTP_FORWARDED_FOR", # RFC 7239
7474
"HTTP_FORWARDED", # RFC 7239
75-
"HTTP_VIA", # Squid and others
75+
"HTTP_CF_CONNECTING_IP", # CloudFlare
7676
"X-CLIENT-IP", # Microsoft Azure
7777
"X-REAL-IP", # NGINX
7878
"X-CLUSTER-CLIENT-IP", # Rackspace Cloud Load Balancers

ipware/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
__url__ = 'https://github.com/un33k/django-ipware'
66
__license__ = 'MIT'
77
__copyright__ = 'Copyright 2023 Val Neekman @ Neekware Inc.'
8-
__version__ = '6.0.4'
8+
__version__ = '6.0.5'

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
python_requires = ">=3.8"
1212
here = os.path.abspath(os.path.dirname(__file__))
1313

14-
requires = ['python-ipware>=2.0.0']
14+
requires = ['python-ipware>=2.0.3']
1515
test_requirements = []
1616

1717
about = {}

0 commit comments

Comments
 (0)