To configure Nginx to throttle login attempts, you can use the `limit_req` module. Follow these steps: 1. Open your Nginx configuration file, usually located at `/etc/nginx/nginx.conf` or `/etc/nginx/sites-available/default`. 2. Add a new `limit_req_zone` directive in the `http` block to define a rate limit: “` http { limit_req_zone $binary_remote_addr zone=login_limit:10m rate=1r/s; … } “` Here, we…
Category: Ubuntu
WordPress on Ubuntu 20.04 with LEMP
WordPress is an extremely popular content management system (CMS) for websites. Its popularity and ubiquity really cannot be overstated, as it powers a staggering 35% of websites. It’s an easy way to get a website online, and it offers a lot in the way of customization. Let’s start by configuring our database server: From the…
LEMP Stack on Ubuntu 20.04 LTS
This tutorial will guide you through installing a LEMP stack (Nginx, MariaDB, and PHP) on Ubuntu 20.04. Let’s start by updating our installation: Let’s install all the components we are going to need to get started: Let’s get everything setup for starting after boot and check for any issues: Now let’s make a few minor…
IRC Auto Downloader with Autodl-IRSSI and rTorrrent
This script works for both Ubuntu and Debian that you have fully installed and updated. First you must download the script and execute. After the setup is run you will need to execute the main script with the following option: After the script is run, you will want to document the details on the screen…
Using a Terraform on a Ubuntu to control Azure
First, let’s set up AzureCLI on Ubuntu: Let’s set up our lab directory and configure it for Azure: Let’s set up our credentials: You’ll be prompted to open a web page to complete the authentication: Now let’s set up our Terraform configuration file: Let’s double-check our work by executing: If all is well, let’s execute…