Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Accessibility Problem


realjsk

Recommended Posts

Posted

How to prevent viewers from seeing the contents of some directories? For example, because the access mode of catalog/images is 777, a viewer can point his/her browser to "www.domainXxxX.com/catalog/images/" and (s)he will see all the contents of that directory. Is there a way to prevent this? And what other directories to which I should apply this fix?

 

Thank you.

Posted

You could place an index.php in these directories, with the following contents:

<?php

header('location: http://<your domaine>/catalog/default.php');

?>

That would redirect visitors to your default.php page.

 

HTH

Best Regards

olby

Posted

No - that directory has to writeable, but if the above isn't working out, you can just put an empty file named index.html into that directory.

That'll prevent any browsing and give a blank screen.

 

HTH

Best Regards

olby

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...