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/

Remote Development Using Digital Ocean: Devpod

Remote Development Using Digital Ocean: Devpod

In the previous post, Remote Development Using Digital Ocean: Remote SSH, I outlined how to set up an existing devcontainer github repo to use a Digital Ocean Droplet. Now I'm going to do the same, but using devpod, an opensource CodeSpaces like development environment. First, you'll
13 Jun 2025 2 min read
Remote Development Using Digital Ocean: Remote SSH

Remote Development Using Digital Ocean: Remote SSH

A few years ago, I wrote an article about Using a DigitalOcean Droplet as a Development Environment, which focused on how to quickly create a droplet and connect using ssh, tmux & vim from my iPad Pro. Let's update that for using devcontainers from a Macbook Pro and
13 Jun 2025 2 min read
Devcontainers for Typescript

Devcontainers for Typescript

Setting up a consistent development environment shouldn’t feel like herding cats. With devcontainers, you can define a ready-to-code workspace that runs anywhere, locally or in the cloud. If you're building Typescript projects and are tired of the “works on my machine” problem, devcontainers offer a clean, reproducible
12 Jun 2025 2 min read
Everyday DevOps © 2025
  • Sign up
  • Book some time
  • Newsletter
Powered by Ghost