---
title: "Discussion on \"How to Block Other Domain Access to Your Nginx Web Server\" | Hashnode"
description: "Discussion on \"How to Block Other Domain Access to Your Nginx Web Server\". By default, Nginx doesn't block unwanted access to your web server when it's done directly to your server's IP address. This means that anyone can potentially access your server's resources. Here is how you can fix this issue.\nPrerequisites\n\nAn Nginx..."
url: "https://hashnode.com/posts/how-to-block-other-domain-access-to-your-nginx-web-server/64798aa68b47efbc1dcc4a48"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Block Other Domain Access to Your Nginx Web Server](https://blog.nishant.lol/how-to-block-other-domain-access-to-your-nginx-web-server?utm_source=hashnode&utm_medium=feed)

By default, Nginx doesn't block unwanted access to your web server when it's done directly to your server's IP address. This means that anyone can potentially access your server's resources. Here is how you can fix this issue. Prerequisites An Nginx...

Jun 2, 2022 · 2 min read · blog.nishant.lol  
Read the article

-   [#server](https://hashnode.com/tag/server)
-   [#nginx](https://hashnode.com/tag/nginx)
-   [#domain](https://hashnode.com/tag/domain)
-   [#linux](https://hashnode.com/tag/linux)

## Written by

[Nishant Kumar](https://hashnode.com/@nisnym)

@nisnym · India

  
[View profile](https://hashnode.com/@nisnym)

I just really enjoy humming.

Here to give you guys a good read, in a different way with each blog. Not a niche-specific blogger. To be honest, I'm just blogging with the aim of applying knowledge to achieve practical goals.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
