Restricting Access In httpd.conf

Posted on 2005-04-20
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

    <Directory /path/to/document/root>
    Order Allow,Deny
    Allow from
    Deny From All

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
    It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now