T
T
TopGun892017-11-13 13:38:07
iptables
TopGun89, 2017-11-13 13:38:07

How to block bots with iptables?

Hello. The vps has Ubuntu 14.04.5 LTS installed
There is a list of bots that need to be blocked - https://pastebin.com/n3RZRDkr
Can you tell me the command for the console that blocks bots via IPTables?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Dart, 2017-11-13
@gobananas

So the command is simple for a specific IP
But everything is not so simple there, the rules are read from top to bottom and at first it is desirable to allow everything, and then to prohibit some. And after a reboot, they can be reset if additional instructions are not prescribed .
It is advisable to read the article sysadminblog.ru/linux/2012/05/22/primery-ispolzova...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question