Solved

Apache allow for localhost only

Posted on 2006-07-12
2
10,105 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

9 Experts available now in Live!

Get 1:1 Help Now