IP address in the comments

This is the right place to report general bugs, make suggestions or ask for help.
User avatar
fraenkiman
Posts: 253
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: IP address in the comments

Post by fraenkiman » Wed Aug 28, 2024 3:43 am

This update anonymizes the visitor's IP address.
The advantage is that you don't have to change the whole core and you can continue to use the Akismet Antispam service because at least a fake IP can be provided.

For IPv4 addresses, the last 2 blocks are zeroed.

Code: Select all

VERSION|fp-1.4.dev|NAME|John Doe|CONTENT|test text|IP-ADDRESS|192.168.0.0|DATE|1724809450|
IPv6 addresses are replaced by a hash generated from the user agent and browser language. This gives the visitor a fake IPv6 address.

Code: Select all

VERSION|fp-1.4.dev|NAME|John Doe|CONTENT|test text|IP-ADDRESS|bcb7:e5f3:573d:1c07:3768:5a87:c5e8:fadd|DATE|1724809831|
This means that IP addresses are still used in FlatPress, but they can no longer be assigned to the visitor.
Optionally, the anonymization of the IP can be deactivated in the admin area (configuration panel).
The update contains all 13 languages

PLEASE create a backup before overwriting the previous files!

Best regards
Frank
Attachments
anonymize-visitor-ip.zip
(32.79 KiB) Downloaded 33 times
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

User avatar
fraenkiman
Posts: 253
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: IP address in the comments

Post by fraenkiman » Thu Aug 29, 2024 6:05 pm

The two files for the Asmin area were not in the correct directory. Therefore here again the corrected update.
Attachments
anonymize-visitor-ip.zip
(33.09 KiB) Downloaded 24 times
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest