Skip to content

Commit

Permalink
No longer send cf_connecting_ip, x_forwarded_for, forwarded and x_rea…
Browse files Browse the repository at this point in the history
…l_ip headers
zepfietje committed Jul 2, 2022
1 parent adfc443 commit 3ad2b98
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [0.2.2] - 2022-07-02

### Changed

- No longer send `cf_connecting_ip`, `x_forwarded_for`, `forwarded` and `x_real_ip` headers.

## [0.2.1] - 2022-06-16

### Removed
@@ -34,6 +40,7 @@

- TrackPageview middleware.

[0.2.2]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.2.2
[0.2.1]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.2.1
[0.2.0]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.2.0
[0.1.2]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.1.2
4 changes: 0 additions & 4 deletions src/Http/Middleware/TrackPageview.php
Original file line number Diff line number Diff line change
@@ -23,10 +23,6 @@ public function terminate(Request $request, mixed $response): void
->post('https://api.pirsch.io/api/v1/hit', [
'url' => $request->fullUrl(),
'ip' => $request->ip(),
'cf_connecting_ip' => $request->headers->get('CF-Connecting-IP'),
'x_forwarded_for' => $request->headers->get('X-Forwarded-For'),
'forwarded' => $request->headers->get('Forwarded'),
'x_real_ip' => $request->headers->get('X-Real-IP'),
'user_agent' => $request->userAgent(),
'accept_language' => $request->headers->get('Accept-Language'),
'referrer' => $request->headers->get('Referer'),

0 comments on commit 3ad2b98

Please sign in to comment.