there was a website like xxx.com/downlonds it was a folder with full of zips. now somebody can aded a file xxx.com/downloads/index.html my question is, can i still view the files from this directory if he put an index.html file?
No you can't. But you could if you create an .htaccess file like this. <IfModule dir_module> DirectoryIndex YourhiddenIndex.html </IfModule> Code (markup): And upload it to your downloads directory.
Better yet, don't put the files in a public directory. Place them below the public_html directory, and use a PHP to read and output them.