Parent Directory Index Of Private Images Better File

// index.php in your /private-images folder $dir = '.'; $files = scandir($dir); foreach($files as $file) if(is_file($file) && preg_match('/\.(jpg // No link to the parent directory, no file sizes, no traversal.

Ensure autoindex off; is set in your configuration file. 2. Move Images Outside the Web Root parent directory index of private images better

: Tell search engines not to crawl specific folders by adding Disallow: /private-folder-name/ to your robots.txt file. // index