Solved

Apache allow for localhost only

Posted on 2006-07-12
2
10,116 Views
Last Modified: 2009-05-20
How do I make a page accessible by localhost only?  I've tried this, but it didn't work -- it's still accessible from outside.

Alias /mypage /projectdirectory/mypage
<Directory /projectdirectory/mypage>
    Order deny,allow
    Allow from localhost
</Directory>

Thanks!
0
Comment
Question by:Autogard
2 Comments
 
LVL 24

Accepted Solution

by:
slyong earned 500 total points
ID: 17096610
Hi,
try

<Directory /projectdirectory/mypage>
  Order deny,allow
  Deny from all
  Allow from localhost
</Directory>

remember to restart your http server
0
 
LVL 8

Author Comment

by:Autogard
ID: 17105789
Works great!  Thanks!
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
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 …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

828 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