Answer the question
In order to leave comments, you need to log in
How to block a specific URL using iptables?
Sites are hosted on the server, sometimes it is required to block access to a certain page, how to do this through iptables? Maybe there are easier options?
Answer the question
In order to leave comments, you need to log in
If you need to use only iptables then:
But the method, to put it mildly, is not optimal, since it heavily loads the processor with parsing all incoming TCP packets, in addition, the packet is dropped, but the session to the server will continue to hang
. Isn't it easier to use .htaccess?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question