IP addresses created as Contacts -- how to disable it?

Your software
My Mautic version is: 6.0.6
My PHP version is: PHP Version 8.3.26
My Database type and version is: MySQL

Your problem
My problem is:

Mautic seems to capture lots of IP addresses in my contacts, how do I disable it?

These errors are showing in the log:

No errors I see from the logs

Steps I have tried to fix the problem:

In tracking settings, I’ve already disabled these options, but it didn’t seem to help:

you’re already at the right point: Simply set “Anonymize IP” to Yes :slight_smile:

Oh that’s what it means! I thought it just scrambles the IP addresses. The info box is more helpful than the text. Thanks @ekke !

oh, good point! The behavior was actually different in earlier versions where 1.2.3.4 would be turned into 1.2.3.* (while now it becomes *.*.*.*)

Maybe the label in the UI should be changed into “Do not store IP address” or so.
→ Would that have helped you?

1 Like

“Do not create new Contacts from only IP addresses” is the most clear to me!

That is again something different - you seem to be talking about “anonymous contacts” (you may want to research that term), with the switch enabled they will still be created but as “*.*.*.*"

Oh then there’s a misunderstanding here. My original question was how to stop Mautic from creating contacts with only IP addresses. You are saying the “anonymous contacts” toggle has nothing to do with it, is that correct?

There is no “anonymous contacts” toggle…
The ”Anonymize IP” toggle, though, is almost what you want:

  • It prevents the IP to be stored.
  • It does NOT prevent anonymous contacts from being created - they just no longer carry the IP address.

If you want to really get rid of anonymous contacts (and again, make sure to first understand what they are good for!): Best practice is to

  • create a segment with filter “email address = EMPTY”
  • create a campaign starting from that segment that does nothing but “delete contact”.
    (DANGER ZONE, obviously. Make double sure to not accidently delete contacts that you would rather keep.)

This helps a lot, thank you!

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.