I have a site where the contact form is getting spammed. I have enabled CAPTCHA but it’s not helping. Is there a geoblocking app or a way to prevent certain countries from accessing the site? Thanks.
Hi Jessica, Wix currently does not offer a geo blocking app, but I do believe there are external apps you can use with Wix sites. You may have to do some research.
Is it a Wix Corvid form?
Hi @jlevin7 ,
It is possible to add geo blocking using corvid to your site. You can choose which all countries to block from a dashboard page and then the code can do the magic.
Thank you Thrishti!
It’s a Wix Form.
Would you mind elaborating. I would appreciate it.
I meant we can use wix Corvid code to block the countries that you don’t want visitors from. I can make a dashboard page in your site editor or a admin page in one of your page and there you can select all counties that you want to block from a dropdown.and whenever someone from that country visites your website, I can detect it and then show a box or page saying “We don’t have service in your region” or something and prevent users visiting your site.
Ok than i cant help with that unfortunatly
Hey so I managed to learn how to block certain countries from visiting/accessing my Wix website.
I’m not a coder myself but found it fairly easy to apply using this code.
The code I used for my website is given below,
import wixLocation from 'wix-location';
import {fetch} from 'wix-fetch';$w.onReady(function () { // Fetch the user's location details
fetch('https://extreme-ip-lookup.com/json', {
method: 'get'
}) // Check if the request was successful
.then((httpResponse) => {
if (httpResponse.ok) {
return httpResponse.json();
}
})
.then((json) => {
// Set the user's countryCode as a const
const loc = json.countryCode; /* Check if location is India, and check if visitor is not already on
not available page */ if(loc === "IN" && wixLocation.path !== "not-available"){
// Redirect to "Not Available" page
wixLocation.to("/not-available");
}
});})
The visitor is technically redirected to a page you would have to create that displays a message like “This content is not available for your country”.
You can check out this article for step-by-step instructions.
Hope I helped! Best of luck.
Great insights!