Camen Design Forum

Delete

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

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE[3]: Banning By IPs

Martijn

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

1. Your code is calling `http://freegeoip.net/json/github.com/".$_SERVER['REMOTE_ADDR']` but I don’t think the `/github.com/` 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.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn