"index of" lists unindexed folder. need to remove visibility

spoooner

Registered
Mar 9, 2012
1
0
51
cPanel Access Level
Website Owner
What happens: type my URL---> Goes to "index of" page (I want this). visually lists files/htm's I want shown, also lists images and videos directories.

What needs to happen: type my URL---> Goes to "index of" page. Shows my files (all 777 permisions) , but hide the images & videos directories already set to "no indexing", without removing execute permission.

IN PLAIN WORDS, the settings have been made to make those directories show nothing when clicked (no indexing option in cpanel), but the directories are still visible (clickable) in the "index of" and I don't want them to be.

I can make them disappear by changing permissions--->uncheck execute BUT IF I DO, the files in those directories can not be seen in the web pages that link to them.

Please help !

to filter common forum speculation---: IF YOU'RE ASKING:why do you want a "index of" page full of links to .htm and other files--ANSWER because that is exactly what I want for my own specific and unpublic reasons)(IF YOUR SOLUTION IS--- why not make my web page blank with only href links to files you want visible? ANSWER---- because I want them to automatically index what's in the root folder without having to rewrite .htm, and I don't know how to write code to do so.
 

LDHosting

Well-Known Member
Jan 19, 2008
93
2
58
cPanel Access Level
Root Administrator
Last edited:

Infopro

Well-Known Member
May 20, 2003
17,112
514
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
to filter common forum speculation---:
But wait, there's more!

Why would you want these files to be set with full write permissions?

I can make them disappear by changing permissions--->uncheck execute BUT IF I DO, the files in those directories can not be seen in the web pages that link to them.
You do not need to make files executable to be seen. 644 permissions should work just fine.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello,

I've moved this thread from the workarounds forum to the general discussion. The purpose of the workarounds forum would be to post workarounds rather than to inquire about issues. Please review the sticky on what the workarounds forum is intended to serve:

http://forums.cpanel.net/f402/perl-e-print-hello-world-n-252841.html

Thanks!