Skip to content

evilbebra/nginx-geoip-blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

nginx-geoip-blocker

Description:

In a Docker Compose setup, there's a Java-based application and an Nginx server with embedded Lua. When a request is received, the application determines the country of origin for the request.

Run:

1) git clone https://github.com/evilbebra/nginx-geoip-blocker
2) cd ./nginx-geoip-blocker
3) docker-compose up -d  

-- FOR TEST. SHARES YOUR LOCAL APP TO GLOBAL INTERNET --

4) ngrok.exe http 9999
  1. follow the link that ngrok generated (like https://your-public-ip.ngrok-free.app/)
  2. with RU and GB VPN you will get 500 error, from other countries it will give you the nginx start page

About

Blocking traffic from specific countries by NGINX

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published