Solved

Apache allow for localhost only

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

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). #…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

831 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