Skip to content

Instantly share code, notes, and snippets.

@github-prashant15
github-prashant15 / GeoIP Block NGINX Ubuntu 20.04.md
Created August 29, 2023 11:00 — forked from dunderrrrrr/GeoIP Block NGINX Ubuntu 20.04.md
Allow or block GeoIP in Nginx on Ubuntu 20.04

GeoIP Block NGINX Ubuntu 20.04

Block or filter IPs based on location in Nginx (tested on 1.18.0) on Ubuntu 20.04.

Install Nginx modules

To make use of the geographical filtering, we must first install the Nginx GeoIP module as well as the GeoIP database containing the mappings between visitors’ IP addresses and their respective countries. To do so, let’s execute:

$ sudo apt install libnginx-mod-http-geoip geoip-database
@github-prashant15
github-prashant15 / README.md
Created October 8, 2022 06:52 — forked from ross-u/README.md
M3 - Project Setup ( 2 repos, React + Node/Express )

M3 - Project Setup (2 repos, React + Node/Express)


Getting Started

@github-prashant15
github-prashant15 / lamp-util.md
Created February 28, 2022 13:55 — forked from Igor-Lopes/lamp-util.md
Install LAMP on CentOS/RHEL/ 7

Install LAMP Server (Apache, MariaDB, PHP) On CentOS/RHEL/ 7

Install Apache:

yum install httpd -y

Start the Apache service and make it to start automatically on every reboot:

systemctl start httpd

@github-prashant15
github-prashant15 / lamp-util.md
Created February 28, 2022 13:55 — forked from Igor-Lopes/lamp-util.md
Install LAMP on CentOS/RHEL/ 7

Install LAMP Server (Apache, MariaDB, PHP) On CentOS/RHEL/ 7

Install Apache:

yum install httpd -y

Start the Apache service and make it to start automatically on every reboot:

systemctl start httpd

@github-prashant15
github-prashant15 / lamp-util.md
Created February 28, 2022 13:55 — forked from Igor-Lopes/lamp-util.md
Install LAMP on CentOS/RHEL/ 7

Install LAMP Server (Apache, MariaDB, PHP) On CentOS/RHEL/ 7

Install Apache:

yum install httpd -y

Start the Apache service and make it to start automatically on every reboot:

systemctl start httpd