Jump to content

Module Folder Directory Content


Recommended Posts

My hosting account is justhost, my shop is installed and working great, i was having problems with Bankwire and Cheque (the 500 internal error problem) then i changed my permissions to my Modules folder and subfolders from 777 to 755 and the problem was solved.

Now I have the problem that the directory contents of my folders are open for listing by anyone that points the url to that directory, example:

/modules/bankwire/

Is there a correct way to solve this problem?

Thanks!

Mario

Link to comment
Share on other sites

My hosting account is justhost, my shop is installed and working great, i was having problems with Bankwire and Cheque (the 500 internal error problem) then i changed my permissions to my Modules folder and subfolders from 777 to 755 and the problem was solved.

Now I have the problem that the directory contents of my folders are open for listing by anyone that points the url to that directory, example:

/modules/bankwire/

Is there a correct way to solve this problem?

Thanks!

Mario


You can fix it with server configuration, but the easiest way is to just place an "index.php" file in each directory as follows:

<?
header("location: /"); 
exit();
?>

Link to comment
Share on other sites

×
×
  • Create New...