Saturday, January 2, 2010

Ftp://index To Jpeg How Can I Restrict All Access To A Dir. (site.com/ftp), While Still Letting Users Access Site.com/index.php ?

How can I restrict all access to a dir. (site.com/ftp), while still letting users access site.com/index.php ? - ftp://index to jpeg

I do not want anyone to see open directories on my site, IE www.site.com (/ ftp), but I want to have people access (www.site.com / ftp / index.php)

1 comment:

  1. *** EDIT ***
    To disable the index of the directive, as I mentioned earlier. To do this, edit u0026lt your httpd.conf file and add Options-Indexes directive \\ \\ \\ \\ \\ \\ \\ \\; Directory> appropriate. Then simply restart your Web server.

    Let me know if you still need help - and tell me what operating system you use.
    *** *** EndEdit

    It is not logical to restrict access to a directory, while accessing a file in that directory. If you have any security features that put it in another directory!

    Maybe people just do not want to see what's in this directory, if the point their browser to ... If so, and if the Apache Web server, this can be done with the index of the directive in the httpd conf file or a file. htaccess, if allowed.

    Look in the conf file, as follows:
    \\ \\ \\ \\ \\ \\ \\ \\ U0026lt; directory / path / Toyour / web / ftp>
    Options-Indexes
    \\ \\ \\ \\ \\ \\ \\ \\ U0026lt; / Directory>

    Otherwise, the default directory index is index.html set, so if you also receive an index.html file in the FTP directory. YouCould also amend the list to index.php? In the. Conf file by under Options-Indexes: DirectoryIndex index.php

    Work ugly the world would only see index.php, and you limit the permissions for all other files. This is complicated, however.

    There are several possibilities, depending on what you want eventually. Please specify exactly like what would happen to you.

    ReplyDelete