agenceam / Geojs.io-cookie-based-solution-PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Geojs.io cookie based geo content

Hello, we have developed this little function to retrieve the country of an IP address in order to display specific content based on it.

We use the geojs.io API which currently has no capping limit. We've opted for a cookie-based solution to limit the amount of calls made to their API.

Features

  • Country code injection in the "ctry" cookie
  • If a cookie exist, no api call
  • Content conditionnement with JS

Authors

Feedback

If you have any feedback, please reach out to us at nathan@agence-am.be

Badges

Add badges from somewhere like: shields.io

GPLv3 License

About


Languages

Language:PHP 39.3%Language:HTML 31.4%Language:JavaScript 28.4%Language:CSS 0.8%