<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
in this code we block any user from israel it cause im from israel and its easy for me to check with this
188 of the 365 chalenge in 2022 1 day 1 challenge
var country_to_block="Israel"
$.ajax({
url: "https://geolocation-db.com/jsonp/",
jsonpCallback: "callback",
dataType: "jsonp",
success: function (location) {
if (location.country_name == country_to_block) {
window.location.href = 'ban.html?'+country_to_block
}
}
});