I want that any images should not be accessible directly to the non logged in users I used following .htaccess file to prevent users.
RewriteEngine On RewriteCond