IP address in the comments

This is the right place to report general bugs, make suggestions or ask for help.
User avatar
Madekozu
Posts: 49
Joined: Thu Apr 21, 2022 8:41 am
Location: Hemmingen (Germany, BaWü)
Contact:

IP address in the comments

Post by Madekozu » Sat Apr 23, 2022 7:10 am

With regard to the GDPR, it is unfortunately a very big problem that FlatPress saves the IP with the comments. Here Flatpress should get a setting during the configuration, whether you want to save the IP completely, anonymously or not at all.

I have implemented an emergency solution on my site, but of course this cannot be the permanent solution.

Code: Select all

 if ($v = utils_ipget()) {
$arr ['ip-address'] = $v;
}
Simply remove this line in the comments.php and no more IP's will be saved
5x FlatPress: 01, 02, 03, 04, 05 :D

User avatar
ScrapBlox
Posts: 18
Joined: Sat Mar 12, 2022 2:37 am
Location: United States, OHIO
Contact:

Re: IP address in the comments

Post by ScrapBlox » Tue May 03, 2022 10:44 pm

Hey where do I find the comments.php file so I can remove this. This is a security risk
Content Creator | Developer | Gamer
~ ScrapBlox (Alec)

User avatar
Madekozu
Posts: 49
Joined: Thu Apr 21, 2022 8:41 am
Location: Hemmingen (Germany, BaWü)
Contact:

Re: IP address in the comments

Post by Madekozu » Tue May 03, 2022 10:59 pm

It's only a security risk for your wallet if you run your website in Europe ;)

The comments.php is in the root of your FlatPress

On your website: /blog/comments.php
5x FlatPress: 01, 02, 03, 04, 05 :D

bttr
Posts: 47
Joined: Tue Mar 22, 2022 9:20 pm
Location: Berlin, Germany
Contact:

Re: IP address in the comments

Post by bttr » Wed May 04, 2022 8:23 pm

To remove the IP address from already existing comments, see https://wiki.flatpress.org/doc:tech:fil ... s#comments

User avatar
Arvid
FlatPress Coder
Posts: 591
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: IP address in the comments

Post by Arvid » Thu May 05, 2022 6:05 pm

This is an important topic, thanks for the suggestion.
I opened an issue.

All the best,
Arvid

User avatar
Madekozu
Posts: 49
Joined: Thu Apr 21, 2022 8:41 am
Location: Hemmingen (Germany, BaWü)
Contact:

Re: IP address in the comments

Post by Madekozu » Wed Aug 07, 2024 6:33 pm

Since I'm back, I wanted to remind you of this "little thing". It's still current in 1.3.1. I'll explain here in more detail why this is so important to me:
-->> https://madekozu.de/2024/08/07/flatpres ... -eindruck/
5x FlatPress: 01, 02, 03, 04, 05 :D

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 » Tue Aug 27, 2024 3:10 am

Hello everyone,

I don't find saving the public IP address that dramatic. It is more useful if you want to defend yourself against liability claims if the comment contains illegal content. You could refer to Art. 6 Abs. 1 S. 1 lit. f DSGVO in your privacy policy.

There may be a suitable template in the numerous generators for data protection declarations.

Another possibility: a server-side shortening of the client IP so that only the first two blocks remain.

If you want, you can copy a customized core.utils.php from the zip archive into the fp-includes/core/. I have neutered the utils_ipget() function there. Akismet Anti-Spam may then not work correctly. If you have an Akismet account, you are welcome to test this and report back.

With best regards
Frank
Attachments
core.utils.zip
(5.1 KiB) Downloaded 22 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
Madekozu
Posts: 49
Joined: Thu Apr 21, 2022 8:41 am
Location: Hemmingen (Germany, BaWü)
Contact:

Re: IP address in the comments

Post by Madekozu » Tue Aug 27, 2024 5:46 am

Thank you for your answer.

Storing the IP is definitely a problem, because it requires the visitor's permission BEFOREHAND.
In order to be able to collect the IP address in the comment function, site operators must therefore obtain the consent of the users beforehand. To do this, they can place a note in the comment column stating which data they collect when writing a comment. Users should have to actively confirm this note via opt-in. In this context, webmasters should also place a link to their data protection information.

Source: https://www.e-recht24.de/dsg/12686-komm ... resse.html
The real problem is not the question of whether I am allowed to do it or not - but the fact that they are stored unencrypted and, with the standard installation, can be viewed by anyone, which corresponds to passing on the data to third parties. The same applies to the email address provided in the comment.
5x FlatPress: 01, 02, 03, 04, 05 :D

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 » Tue Aug 27, 2024 4:25 pm

Hello everyone,

Here is the new core.utils, which does not throw any errors in the logs.
New features:
- the IPv4 client IP is anonymized in the last two blocks
- an IPv6 address is formed from the user agent and browser language for anonymization

This has the advantage that nothing has to be adjusted in the other scripts.
Optionally, you can assign a true in the array $fp_config ['general'] ['use-remote-ip'] to use the real client IP.

@Madekozu: would you like to test the customized core.utils and let us know here?
If there are no objections, this change will be incorporated into the FlatPress repo

Best regards
Frank
Attachments
core.utils.v2.zip
(5.45 KiB) Downloaded 20 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 » Tue Aug 27, 2024 9:12 pm

runs
Attachments
Screenshot 2024-08-27 231327.png
Screenshot 2024-08-27 231327.png (41.52 KiB) Viewed 546 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 0 guests