how to block bots from crawling specific directories via .htaccess

This is an Apache question rather than a WordPress question so it doesn’t belong on this Stack, but your third RewriteCond is blocking every single person who tries to visit your site using Firefox.

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