Everyday DevOps
  • Home
  • One on One
  • Newsletter
  • About
Sign in Subscribe
Linux

Nginx Deny IP

  • Mark Allen

Mark Allen

29 Mar 2014

This is a quick way to deny an ip address accessing your nginx server.

Create a new file in /etc/nginx/conf.d called blockips.conf

Add the following to the file:

deny <bad ip>;

Then restart nginx.  The log file will now show 403's for the IP address.

For more info see:

http://www.cyberciti.biz/faq/linux-unix-nginx-access-control-howto/

Top 10 Ways to Use SSH: A Practical Guide for Everyday DevOps

Top 10 Ways to Use SSH: A Practical Guide for Everyday DevOps

Secure Shell, SSH, sits at the heart of modern DevOps. You use it to log in, move files, forward ports, run commands remotely, and stitch systems together. Many engineers treat SSH as a simple “remote terminal.” That’s only a fraction of what it can do. Below are the top
27 Dec 2025 4 min read
Feature Flags Without an IdP: Email‑Scoped JWTs with OpenFeature + DevCycle

Feature Flags Without an IdP: Email‑Scoped JWTs with OpenFeature + DevCycle

Progressive delivery without a full identity provider. Use a tiny JWT issuer and OpenFeature with DevCycle to gate experiences by email Overview Feature flags enable you to ship code to production behind a safety net. My workflow is straightforward: I deploy with the flag off, enable it for myself first,
03 Dec 2025 8 min read
Typescript for Node

Typescript for Node

How to get started on a Typescript CLI project using yarn for package management and nvm for managing node versions. Set up the overall environment nvm install lts/* npm install -g strip-json-comments-cli npm install -g yarn Set up the project directory. I use ~/src/<project> mkdir <applicationname&
03 Dec 2025 2 min read
Everyday DevOps © 2025
  • Sign up
  • Book some time
  • Newsletter
Powered by Ghost