Posted on 2007-08-06
Last Modified: 2010-05-18
Suppose that I have created a subdomain for a web site, named, which is set to read its data from /public_html/admin. Also assume that reads from /public_html/.

What can I do to make sure no one can access /public_html/admin folder, using ?
Question by:huji
    LVL 7

    Expert Comment

    I cant think of a way to do this non-programmatically.  I believe you would need to write some sort of intelligent script that checks where you are and allow access based on that.

    some sort of mod_rewrite might do the job for you.
    LVL 14

    Author Comment

    It is the mod_rewrite which is the question here.
    LVL 28

    Accepted Solution

    Your best bet would be, within the directory container for the admin web root, to place access and deny statements by IP address (if that's what you prefer) and/or require authentication to that subdirectory.

    That's what I do.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    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…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    729 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

    21 Experts available now in Live!

    Get 1:1 Help Now