gdpr
Process IP address without GDPR consent
<p>We are trying to log the location of our visitors, without storing their actual IP address on our servers.</p>

<p>To geolocate the IP address, we use an external service, to which we make an API request with the user's IP, and the service returns the approximate geolocation we store in our database.</p>

<p>The service is not 100% accurate, more than often it just points to the provider's exchange location
For us this is enough since it is usually in the same city as the original ip address.</p>

<p>Is passing the user's IP address to the external service for processing considered okay without the user's explicit consent under the GDPR?</p>

<h2>Consent in <em>one</em> reason - there are <a href="https://gdpr-info.eu/art-6-gdpr/" rel="nofollow noreferrer">6 others</a></h2>
<p>However, your usage doesn’t appear to fall within any of them so consent is required. Further, unless your service won’t work without this, you cannot deny access if consent isn’t given.</p>

<blockquote>
  <p>Is passing the user's IP address to the external service for processing considered okay without the user's explicit consent under the GDPR?</p>
</blockquote>

<p>That is okay provided that:</p>

<ul>
<li>The IP address is no personal data (i.e. it <a href="https://gdpr-info.eu/art-4-gdpr/" rel="nofollow noreferrer">does not relate to an identified or identifiable natural person</a>); OR</li>
<li>The IP address is not from the EU* (only persons <em>in</em> the EU are protected by GDPR).</li>
</ul>

<p>Whereas an IP address <em>in your possession</em> may relate to an identified or identifiable natural person (by means of you having other data that allows to map the IP address to a particular person), passing the IP address <em>alone</em> to an external service will likely not allow them to figure out what person it belongs to. This IP address is therefore anonymous data to which GDPR <a href="https://gdpr-info.eu/recitals/no-26/" rel="nofollow noreferrer">does not apply</a>.</p>

<p>* Barring the cases where a person in the EU uses VPN outside of the EU.</p>
