I think i read a guide here before about this but can't seem to find it.
Basically my landing pages are on this p
subdomain.domain.com/folder/lpname.html
but anyone who does to
subdomain.domain.com/folder/ or subdomain.domain.com or domain.com
can navigate through all the files. how do i disable that?
I'm guessing you are using apache.
Edit your .htaccess file (or create one) and add:
What's a "guest" btw?
why would you want to block me? :P
Yeah it's the database/Amember is being cranky - long story short it's because we had to manually activate his account, so if you see a guest who's actually posting, it's probably because of this.
If it's LiteSpeed (and with BH) you are likely paying for full LiteSpeed = it will read Apache configs and I *think will read .htaccess files.
If not, you can just edit the Apache config in cPanel and add the options -indexes part.
Here’s the way that Zeno mentioned above.
Go to Cpanel and click on index manager

Select the folder you want to no index (or root of the domain to block it all)
Then it will take you to this page. Select the “no indexing” option

Or even simpler you can just ask beyond hosting to do it for you. Just let them know which domain and they can take care of it.
If you're on managed hosting don't mess about with it yourself. Just ask them to do it. That's what you're paying a premium for.
I generally go to cpanel > Index Manager > No Indexing
If you have root WHM access do this to disable the directory indexes globally:
Log into WHM
Service Configuration --> Apache Configuration
Global Configuration
Scroll down to Directory '/' Options
Untick Indexes option
Then save
Finally, rebuild by clicking rebuild apache conf
Done..
This will set that globally for the whole server. As for the LiteSpeed it reads the .htaccess so adding this:
options -indexes
to the .htaccess under that folder where the landing pages are will fix this. If there is no .htaccess file just create one on your computer add this line I mentioned above and upload it to the server under the directory where this should apply. This applies recursively so if you upload it under:
/home/username/public_html
it will prevent the folder listing for all the directories under the www root ( of course if there is no .htaccess under a sub-directory which "says" otherwise ).