Web File Access

Posted on 2006-05-27
Last Modified: 2012-05-05
I want to create something so that when someone tries to go to
it tells them you dont have accress to this section..
only to my IP address. how can I do that?
Question by:aplelois
    LVL 6

    Expert Comment

    by:Samer Chidiac
    Some hosting companies provides Secure URLs that will display a Windows Authentication Login Box.. which is VERY Secure ... this is the fasted and most reliable one if you dont want to use a specific Programming Language such as asp or

    you can use if you like to receive this option ..


    Samer Chidiac
    Microsoft MVP - ASP/
    LVL 6

    Expert Comment

    by:Samer Chidiac
    another thing .. if you want to limit to your IP ... you will have to use Programming to do so .. and this has to be done in each page .. or if you used 2.0 using the Security Model there.

    LVL 10

    Accepted Solution

    Actually, that may or may not be true depending on the type of webserver.  Apache can achieve this via the site config, or in many situations, the .htaccess file.  If it's apache, create a .htaccess file in the /cgi-bin/admin/ directory.  This file will literally be called (in most situations) .htaccess and the (.) in the filename is necessary and should be the first character.  In the file, put:

    order deny, allow
    deny from all
    allow from

    Replace with your IP address with your IP address and you should then only be able to access that directory from your IP.

    You can also edit the httpd.conf file and do the same there, though the format's a bit different.  Check out:

    for more information.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    erros on link  checking 2 25
    Pick image, show data 4 25
    Video will not go into background 20 17
    Where is the title coming from 6 35
    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    732 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

    17 Experts available now in Live!

    Get 1:1 Help Now