Add .htaccess in webroot

I am experiencing web crawlers aand I need to restrict user agent accesses using htaccess[apache]. How can I add .htaccess in webroot since seafile is currently a proxy for apache2. There’s no documentatiin about this.

Why use HTACCESS? Just put your rules into Apache VirtualHost.


I can’t I am applying this ‘apache-ultimate-badblock-blocker’ and it requires that it has or tags defined. However Seafile with apache is only a proxy access, I cannot do it.

This is what I am trying to do: