Jump to content

How to stop files from being listed


JRS

Recommended Posts

Hello,

Is there a way to stop all the files from being listed if an invalid file name is entered?

For example I have
www.mysite.com/scripts/main.php

If I type in : www/mysite.com/scripts/

Then all the files in that directory are displayed to end user.

Is there a way I can prevent all the files from being displayed to the user?

Thanks in advance
JRS
Link to comment
https://forums.phpfreaks.com/topic/22001-how-to-stop-files-from-being-listed/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.