how to detect and stop bot traffic?

Lakz

Newbie
Joined
Oct 15, 2019
Messages
24
Reaction score
9
Hi

How can I detect if the traffic is real or bot?
 

Attachments

  • creating-a-discord-bot-part01-01.jpg
    creating-a-discord-bot-part01-01.jpg
    93.6 KB · Views: 116
Make a simple script that you can insert in all pages and log all traffic. Then analyze it and block the traffic either from the same script or iptables. 99% of bot traffic can be stopped with a few lines of codes and a heavy list of patterns.
 
Make a simple script that you can insert in all pages and log all traffic. Then analyze it and block the traffic either from the same script or iptables. 99% of bot traffic can be stopped with a few lines of codes and a heavy list of patterns.
thank you I will do some research
 
stick this in . htaccess

Code:
RewriteCond %{HTTP_USER_AGENT} AltaVista [OR]
RewriteCond %{HTTP_USER_AGENT} Googlebot [OR]
RewriteCond %{HTTP_USER_AGENT} msnbot [OR]
RewriteCond %{HTTP_USER_AGENT} Slurp
RewriteRule ^.*$ IHateBots.html [L]

add more as needed.

proper way...
 
You can check it by Google Analytics, there you can get all the detail like from where you are getting traffic, by which mean your are getting the traffic and many more
 
The solutions posted above won't do any good. If you are serious about blocking bots you must pick a service that provides this service. I recommend IPQUALITYSCORE, it's pricey but they have a huge database, even for residential proxies, they also do real-time scoring.
 
Last edited:
Back
Top