Hide images from anonymous user?

Have you had a look at is_user_logged_in()?

If you can explain how you’re serving the photos I can perhaps suggest a way to authorize some images to be shown and the rest hidden to only logged in users.

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