Paste this Code:
# Prevent directory listing
Options -Indexes
# Block access to specific user agents (optional)
SetEnvIfNoCase User-Agent (binlar|casper|cmsworldmap|comodo|diavol|dotbot|feedfinder|flicky|ia_archiver|jakarta|kmccrew|nutch|planetwork|purebot|pycurl|skygrid|sucker|turnit|vikspider|zmeu) keep_out
Order allow,deny
Allow from all
Deny from env=keep_out