MyBB Community Forums

Full Version: inc and config.php file that can not be accessed directly using this method.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi friends.

inc and config.php file that can not be accessed directly using this method.

create a file .htaccess and insert it into inc

for this code in the file .htaccess

<files config.php>

Order Internal Server Error, allow

Internal Server Error from all

</files>


  Now, Whenever someone goes to yoursite.com/inc, they'll get a 500 internal server error.

like this.
[attachment=29230]