Plugin Author
Erik
(@codekraft)
Hi @prionkor,
You can manually upload the MaxMind database to the directory wp-content/uploads/cf7-antispam/.
Please note that if you choose this option, you must also create an .htaccess file within that folder containing the following content:
Require local
-
This reply was modified 3 weeks ago by
Erik.
Eric, thanks for the prompt response. When I put the mmdb file i should place it directly in the directory correct? Note: When I extract the compressed file it usually put the db file into a directory.
Report: I have placed the mmdb file in the directory but after 24 hours the file is not processed. I am not sure how to make the plugin process the mmdb file.
Plugin Author
Erik
(@codekraft)
Hi @prionkor,
I apologize for the slow response, but I wanted to quickly check the application code.
What needs to be checked is the checkbox next to “Database available” on the plugin’s options page. Unfortunately, it isn’t being displayed correctly because I was relying on the automatic download process to enable that checkbox.
However, this will not prevent the plugin from using the database and performing the GeoIP lookup, provided that:
- It is placed inside the
wp-content/uploads/cf7-antispam/ folder.
- The database file is named
GeoLite2-Country.mmdb.
- The “Detect location using GeoIP” option is active.
Thank you for reporting this issue; I was just completing the new version of the plugin, and I will include this fix.
Hello, I wanted to confirm the following. I think a nice feature will be ability to upload the mmdb file from the interface however then you will have to make sure data is correct and importable. Both mmdb or zip.gz file can be supported.
- It is placed inside the
wp-content/uploads/cf7-antispam/ folder. – YES
- The database file is named
GeoLite2-Country.mmdb. – YES
- The “Detect location using GeoIP” option is active. – NO and it is disabled (probably due to db not available).
Plugin Author
Erik
(@codekraft)
Hello @prionkor,
Apologies for the silence over the past few days. I wanted to take the time to implement a proper fix, as your confirmation showed that the issue was exactly as you pointed out (the “Detect location using GeoIP” option was disabled due to the flawed “Database available” check).
I’ve corrected the logic and also implemented the feature you suggested (allowing manual file upload via the interface).
You can view the changes in this Pull Request: https://github.com/wp-blocks/cf7-antispam/pull/131/files (I just need to finalize the CSS styling).
Thank you for your patience and for the valuable report!
Plugin Author
Erik
(@codekraft)
Ciao @prionkor,
I have modified the method for uploading the database, and now you should be able to load both the .tar.gz and .mmdb geoip databases. Let me know if it works for you!