Hello,
I recently signed up with a free hosting provider(apache, mysql, php). When I login through ftp, I go to my root directory which is web accessible. So where do I hide the files that I don't want to be accessed through the web? Such as database connection files, user uploaded files, etc. Are all hosting services the same? Or do some of them give access to directories that are not web accessible? This first I am trying put an actual website up so I would appreciate any help. Thanks.
ryy705 0 Junior Poster
Recommended Answers
Jump to Postthere is usually a folder outside of the web directory called private, if you dont have that then use this link to learn .htaccess http://www.javascriptkit.com/howto/htaccess.shtml
it will help you because you can stick all of your sensitive information within a folder and …
Jump to PostIf you want to protect the content of your directory use .htaccess with .htpass files. If you want only to hide your folder's content you can create a blank index.html file and put in every directory you want.
All 8 Replies
Auzzie 6 Junior Poster
ryy705 0 Junior Poster
ryy705 0 Junior Poster
Auzzie 6 Junior Poster
silviuks 0 Junior Poster in Training
Auzzie 6 Junior Poster
ryy705 0 Junior Poster
Auzzie 6 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.