Login
Remember
Register
wikiTechSolutions
All Activity
Questions
Hot!
Unanswered
Tags
Categories
Users
Ask a Question
Ask a Question
How can I ban malicious web bots with htaccess?
Home
Linux
How can I ban malicious web bots with htaccess?
+22
votes
487
views
asked
Jun 18, 2014
in
Linux
by
administrator
(
26.3k
points)
How can I ban malicious web bots with htaccess?
Please
log in
or
register
to answer this question.
1
Answer
+15
votes
answered
Jun 18, 2014
by
Replier
(
1.2k
points)
selected
Jun 18, 2014
by
administrator
Best answer
You should add this top of your htaccess file:
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^evilbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^spambot [OR]
RewriteCond %{HTTP_USER_AGENT} ^virusbot
RewriteRule ^(.*)$
http://no.access/
This prevents malicious bot
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Ask a Question
Welcome to WikiTechSolutions where you can ask questions and receive answers from other members of the community.
You can ask a question without registration.
Related questions
Help Why can not I start downloading video from a web page
one nexus7 and I can not display the web, but gmail, youtube for example (?)
How can I login openvpn, what is port number?
Categories
All categories
Programming
(93)
Android
(3.1k)
IOS
(724)
SmartPhones
(84)
Windows
(243)
Windows Mobile
(49)
Linux
(62)
Internet
(57)
Computer
(102)
Devices
(5)
Sony
(80)
Safe Mode
(4)
Home
(126)
Help
(112)
Security
(11)
Friend Sites
Smartphone Connections
Smartphone Problems
...