MyBB Community Forums

Full Version: how to prevent people from accessing the directory directly
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi friends

how to prevent someone from accessing a website directory of direct and redirect it back to the index page. ?

example: the directory smilies

please help.
MyBB has a blank index.html file in most of the directories to prevent the direct access
how to add it. m.
I can not .. so much code in index.php
just create a new file named index.html on the required directory and leave it. that's it.
thanks .m.

it's very helpful ..
If an image is directly accessed and directed to the index page how.

example: open the logo image in a new tab and navigate back to the index.
that should not be possible due to presence of blank index.html file in the directory