Ask a Question related to Macromedia Dreamweaver, Design and Development.
-
Michael Fesser #1
Re: Newbie: How to protect the files?
LarryM wrote:
Yes, only the document root and subdirs are accessible.>This has probably been discussed many times but I can't find
>any good answers so I must ask (again):
>
>1. Which files can a visitor browse? Is he restricted
>to the webdirectory and the subdirectories?
No, as long as there are no security holes. There are sites where it's>If he knows the
>path to a certain file on the server outside the
>webdirectory, is he then also able to browse or edit or
>download it?
possible to run malicious code from outside. So be _very_ careful if
you use server side scripting and something like this:
[url]www.example.com/?showpage=news.txt[/url]
It's in general bad design and might become a big security hole, when
the paramter 'showpage' is not checked correctly. Unfortunately the
following is possible on many sites (running Linux for example):
[url]www.example.com/?showpage=/etc/passwd[/url]
Yes, but makes no real sense. Below the document root they're>2. Can you use hidden directories on the server for
>certain files?
browsable if the user knows the name and outside the docroot it's not
necessary because it's no real protection.
It depends: If you try to prevent the user from storing your images to>3. Is there a way to protect for instance imagefiles?
disk then the answer is no.
Should be possible.>I hope that, if you are using ASP, that the ASPcode can
>refer to directories and files outside the webdirectory, and
>then be able to display for instance image files that are
>otherwise not visible to a user?
Depends on the server configuration. You can protect directories and>4. What is the way to browse the files on a website?
>5. All these bank web sites and e trade sites - of
>course you cannot browse their files, but how do you
>construct such protection?
hierarchies with a .htaccess (Apache) or put an index.html in that dir
which shows an error message or forwards to a 403-page (403 is the
HTTP-error "forbidden"). Read your server manual or ask your provider.
Micha
Michael Fesser Guest
-
Protect Files in Web.Config?
I have a web.config section that only allows certain groups into a subdirectory. Is it possible to specify that only some types of files (example... -
secure area - how to protect non-cfm files from directaccess?
CFMX 6.1 In secure areas of a website, how do you prevent users from directly accessing non .cfm files directly (such as PDF's) by typing in the... -
Protect files
Hi, I need to distribute two projects, one on cd and one in a downloadable zip file. Everything is ready to go except for the fact that all... -
Protect .dir files
Hi! Is it possible to protect .dir files that are used for a miaw from opening? thanks in advance, ras -
Protect FLV files
Hi all, Anyboys knows what is best ways to protect FLV files (flash video files)? Thanks Behzad Peivasteh http://www.e-course.co.jp



Reply With Quote

