Dear, I want to protect a directory folder and its files(.php & .html) without using linex.plz short out this problem.
The answer is most likely to use an .htaccess file, especially when .html files are involved. What does 'protect' mean exactly? You don't want anyone but a select few to have access to those files? Don't want people to be able extract the files themselves? Something else?
if you are trying to protect your program directories (javascript, phpclass) and stylesheets(css), you better give permission as 0755 and also create a index file inside so that if someone tried to visit those folders using port 21 (http) they will redirect by giving following code. <script language="JavaScript"> function redirect() { top.location = "yoursitename.com"; } function countdown() { setTimeout('redirect()', 5000); } </script Code (markup): put it inside head part of the html.
in case of images you can try htaccess upload a .htaccess file into your image folder having the following code RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC] RewriteRule .*\.(gif|GIF|jpg|JPG|bmp|BMP)$ - [F] Code (markup): Change "yourdomain.com" to your own URL, and upload the .htaccess file to the directory containing your images.
Also, put a blank index.html in every folder that doesn't contain any a main webpage file such as index.html / default.html - ads2help