Maximum protection without using password/login

How to restrict access to uploaded files?

There’s an answer there to help you restrict access to images and other downloadable files.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)