I am new to .htaccess, i want to know how to use .htacces to prevent direct access via url of my folder e.g. localhost/mycart/images/ OR localhost/mycart/css should
If you want to deny access to all files:
deny from all
If you want to disable directory listing:
IndexIgnore *