[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Restricting Access In httpd.conf

Posted on 2005-04-20
Medium Priority
Last Modified: 2010-03-04
I have apache running locally on my machine. I don't use any directory brackets, just DocumentRoot references to enable web server access to a specific folder. What do I put in the httpd.conf file to restrict access to just my computer.

Apache fails to load If I try putting something like these examples in the httpd.conf file:

order deny,allow
deny from all
allow from


order deny,allow
deny from all
allow from
Question by:eroute0101
1 Comment
LVL 16

Accepted Solution

manav_mathur earned 2000 total points
ID: 13833552
<Directory /path/to/document/root>
Order Allow,Deny
Allow from
Deny From All

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Loops Section Overview
Suggested Courses
Course of the Month19 days, 13 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question