Звонок по России бесплатно
Ваш город ?
Ваш город ?

Index Of Dcim Better -

For the uninitiated, "DCIM" stands for . It is the standard folder name used by every smartphone, DSLR, and action camera to store media. When a web server is misconfigured to allow directory listing, the infamous Index of /dcim page appears—displaying every file name, timestamp, and size in plain HTML.

Add this to your .htaccess or Apache config: index of dcim better

Now the index.html file acts as a self-contained gallery, no server needed. The default index sorts by filename. Better is sorting by date taken (not file modified date). For the uninitiated, "DCIM" stands for

$images = []; foreach(glob("*.jpg") as $f) $exif = exif_read_data($f); $date = $exif['DateTimeOriginal'] ?? filemtime($f); $images[] = ['file'=>$f, 'date'=>$date]; Add this to your

Require ip 192.168.1.0/24 Don't serve DCIM from yoursite.com/dcim . Use a random slug: yoursite.com/9f7d8a3b-dcim – This stops casual scanning.