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/

Python Linting

Python Linting

Linting is like a spell check for your code. It scans your files for common errors, formatting issues, and bad practices before they ever reach production. By enforcing consistent style and catching bugs early, linting tools help teams write cleaner, more maintainable code. When integrated into a build pipeline, linting
08 Jul 2025 7 min read
Python Project Setup with uv

Python Project Setup with uv

There are many different ways to get started with a Python project. You can create a new directory and use the python executable in your path, or you can use virtualenv to isolate your development environment from your default python environment. Then there are environment management tools, such as poetry,
08 Jul 2025 1 min read
Why You Should Use Static Analysis Tools Like ESLint or Ruff

Why You Should Use Static Analysis Tools Like ESLint or Ruff

Modern development moves fast. Code gets pushed, pulled, reviewed, tested, and shipped within hours, sometimes minutes. In that kind of high-velocity environment, static analysis tools like ESLint (JavaScript/TypeScript) and Ruff (Python) help you catch problems before they become problems. They act like a second pair of eyes, always watching,
24 Jun 2025 3 min read
Everyday DevOps © 2025
  • Sign up
  • Book some time
  • Newsletter
Powered by Ghost