GitHunt
SA

saeedkohansal/JavaScript-Country-Restriction-With-Blacklist-And-Whitelist

Allow Whitelist Countries & Block Blacklist Countries - Display ACCESS DENIED Error - Using Free IP Info API Third Parties, In this video, I'm gonna show you how to create a country restriction widget with two options for visitors to see my website, whitelisted countries or blacklisted countries, I'm using Vanilla JavaScript, you can customize my script and use it on your website or web application, I must say that if JavaScript is disabled in the user's browser, nothing will happen because our processing is done on the client-side or frontend. so if you want to handle a safe country restriction I suggest you use a server-side or backend country restriction like a PHP script or apache htaccess or any other choice.

JavaScript Country Restriction With Blacklist And Whitelist

How To Create JavaScript Country Restriction With Blacklist And Whitelist HTML/CSS/JS

Thumbnail

Allow Whitelist Countries & Block Blacklist Countries - Display ACCESS DENIED Error - Using Free IP Info API Third Parties, In this video, I'm gonna show you how to create a country restriction widget with two options for visitors to see my website, whitelisted countries or blacklisted countries, I'm using Vanilla JavaScript, you can customize my script and use it on your website or web application, I must say that if JavaScript is disabled in the user's browser, nothing will happen because our processing is done on the client-side or frontend. so if you want to handle a safe country restriction I suggest you use a server-side or backend country restriction like a PHP script or apache htaccess or any other choice.

Video Tutorial [ Creating This Widget From Scratch ]

https://youtu.be/XqGepBsejAM

ย 

If You Enjoy My Content, Please Support Me ๐Ÿ˜๐Ÿ™

๐Ÿ’™ PAYPAL DONATION

https://paypal.me/gilgeekify

โค๏ธ PATREON

https://www.patreon.com/gilgeekify

๐Ÿ’› BUY ME A COFFEE

https://www.buymeacoffee.com/gilgeekify

๐Ÿช™ My Public Address To Receive BTC โ€ข Bitcoin

bc1qerc5ev074cqknu9nz589w4vjf5ecmhuc2df83h

๐Ÿฅˆ My Public Address To Receive ETH โ€ข Ethereum

0x566A47B9731209A5144336D274D44224bfb9C0ea

Languages

HTML75.6%JavaScript13.2%CSS11.2%

Contributors

MIT License
Created June 21, 2022
Updated August 14, 2024
saeedkohansal/JavaScript-Country-Restriction-With-Blacklist-And-Whitelist | GitHunt