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.

error code: 523