Camen Design Forum

Banning By IPs


@Jos that’s interesting. I didn’t know about! 2 things though:

1. Your code is calling `".$_SERVER['REMOTE_ADDR']` but I don’t think the `/` should be in there. To query the database the IP/hostname should be the first thing after the format (`/json/`).

2. An IP address constitutes personal data under GDPR. I wonder if it is allowed to send the IP address of a visitor off to a third party without their explicit consent at all. (Not to mention a third-party service hosted outside of the EU.) You might have to run freegeoip locally or depend on the free GeoLite2 database yourself.


(Leave this as-is, it’s a trap!)

Only the original author or a moderator can append to this post.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn