Re: restricting access to folders on server



Sudhakar wrote:
i am using apache server and presently when i try accessing any
folders of my website i am able to browse the files ex = www.website.com/images
which is a serious security risk as i am building a forum website
using php and mysql.

in the root directory i have created a .htaccess file and whenever
someone access a file which is not

on the server i have created a user friendly message that the file
does not exist instead of a 404

error message displayed by the browser.

similar to this how can i go about restricting users to browse all my
folders in the toot directory.

if anyone accesses for ex = www.website.com/phpscripts an alert should
appear asking them to enter a

username and password.

1. how can i do this using apache.
2. where do i write the username and password information and will
this apply to all the folders in

the root directory or specific directories.

please advice.

thanks.


This has nothing to do with PHP. Try an Apache newsgroup.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================

.



Relevant Pages

  • restricting access to folders on server
    ... i am using apache server and presently when i try accessing any ... which is a serious security risk as i am building a forum website ... folders in the toot directory. ... the root directory or specific directories. ...
    (comp.lang.php)
  • restricting access to folders on server
    ... i am using apache server and presently when i try accessing any folders of ... is a serious security risk as i am building a forum website using php and ... folders in the toot directory. ... apply to all the folders in the root directory or specific directories. ...
    (php.general)
  • Re: Web site on CD
    ... The root directory is the folder that hold the entire content of the web site. ... I did a search to see how to make a website I have created in Frontpage 2003 ...
    (microsoft.public.frontpage.programming)
  • RE: Repair/reconstruction of FP Web site
    ... another idea would be to import the current website in total from the ... secondly go through all the folders and delete all empty folders. ... am starting with a proper FP Web at the new host. ... I will creat a new disk-based Web on my desktop. ...
    (microsoft.public.frontpage.programming)
  • Re: Deploying Website Application
    ... website whose root directory is nothing but html. ... because the website itself must specifiy an ASP.Net version. ... Use publish and publish to a local folder before deploying. ... Line 32: <assemblies> ...
    (microsoft.public.dotnet.framework.aspnet)