How to block bad user agents?

P

pamamolf

Guest
#1
Hello

How we can block bad user agents from web scanners/bots on openlitespeed ?

Thank you
 
P

pamamolf

Guest
#3
So creating an .htaccess on the root of my files and adding this info inside it will be ok?

Thank you
 
#4
open litespeed not support .htaccess
so add the rule at virtual level:
web admin -> Virtual Hosts -> your virtual host -> Rewrite
 
#5
This is a fairly old post but because it has a high rank in google search and the final comment is wrong, I would like to notice that .htaccess work with openlitespeed, but only rewrite rules are valid (the rest like filesmatch checks and deny directives will be ignored).

.htaccess for rewrite rules (for all kind of redirections) work perfectly fine.


Thanks!
 
Top