lat9 / access_blocker

Access Blocker (a pseudo-recapcha)
Other
0 stars 1 forks source link

Add configuration setting to control which ipdata.co endpoint is to be used. #12

Closed lat9 closed 1 year ago

lat9 commented 2 years ago

As identified on the plugin's Zen Cart forum:

FYI for EU-based webshop:

Quote Originally Posted by https://docs.ipdata.co We also offer a dedicated EU endpoint to ensure that the end user data you send us stays in the EU. This has the same functionality as our standard endpoint but routes the request through our EU servers (Paris, Ireland and Frankfurt) only. find in .../includes/classes/ipData.php on line 24:

        curl_setopt($ch, CURLOPT_URL, "https://api.ipdata.co/" . $ip_address . $api_key); 

and replace by:

        curl_setopt($ch, CURLOPT_URL, "https://eu-api.ipdata.co/" . $ip_address . $api_key); 

This way you aren't in violation with EU rules about privacy.