Solved

Apache allow for localhost only

Posted on 2006-07-12
2
10,117 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Server specifications for web hosting 7 96
Internal wordpress pages 404 5 46
PHP Register global 21 104
NGINX/Apache redirect on 403 and 404 5 155
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…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

735 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