E
E
Egor Peregudov2014-05-13 02:22:54
Computer networks
Egor Peregudov, 2014-05-13 02:22:54

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

1 answer(s)
N
Nomadic, 2014-05-13
@Stalk-p

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 question

Ask a Question

731 491 924 answers to any question