---
title: "Discussion on \"How to Password Protect a Website or Web SubDirectory With .htaccess & .htpasswd\" | Hashnode"
description: "Discussion on \"How to Password Protect a Website or Web SubDirectory With .htaccess & .htpasswd\". Working on a website that you need others to see, but not the whole world? Password protecting a website (or a sub directory within a website).\nProtecting files on your website from unauthorized users can be very important. You can use PHP or any lan..."
url: "https://hashnode.com/posts/how-to-password-protect-a-website-or-web-subdirectory-with-htaccess-htpasswd/5fcb12e52e4db7780e482cd3"
---

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

Discussion

# [How to Password Protect a Website or Web SubDirectory With .htaccess & .htpasswd](https://meswapnilwagh.com/how-to-password-protect-a-website-or-web-subdirectory-with-htaccess-htpasswd?utm_source=hashnode&utm_medium=feed)

Working on a website that you need others to see, but not the whole world? Password protecting a website (or a sub directory within a website). Protecting files on your website from unauthorized users can be very important. You can use PHP or any lan...

Jan 7, 2020 · 3 min read · meswapnilwagh.com  
Read the article

-   [#apache](https://hashnode.com/tag/apache)
-   [#web-accessibility](https://hashnode.com/tag/web-accessibility)
-   [#security](https://hashnode.com/tag/security)
-   [#web-servers](https://hashnode.com/tag/web-servers)

## Written by

[Swapnil Wagh](https://hashnode.com/@meswapnilwagh)

@meswapnilwagh · Dubai, United Arab Emirates

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

Senior Full Stack Developer

I'm Swapnil Abhimanyu Wagh, a passionate and self-taught programmer with over 12+ years of experience in IT application development. I love exploring new and exciting technologies and always strive to stay at the forefront of the tech world. Throughout my career, I have worked extensively with a variety of technologies, including node.js, AWS, JavaScript, Loopback, and Angular. My goal is to leverage this knowledge to create innovative software solutions that address real-world challenges faced by organizations. When I'm not coding, you can find me indulging in my other interests. I love spending quality time with my family, watching movies and TV shows, and enjoying playful moments with my adorable daughter. Currently, I am working as a Full Stack Developer, constantly honing my skills to deliver exceptional results. My skillset includes Python, JavaScript, Angular, React, AWS, Docker, Jira, and Agile methodologies. In addition to my programming expertise, I am well-versed in working with various databases, including Postgres, MySQL, MariaDB, and DynamoDB. I'm always open to new opportunities and challenges, and I look forward to creating more amazing software solutions in the future. Let's connect and collaborate to make a positive impact with technology! 🚀 #Developer #FullStack #TechEnthusiast #Innovation

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
