D
D
DanielOlivo2015-09-07 21:07:56
Nginx
DanielOlivo, 2015-09-07 21:07:56

How to block public proxies?

Hello.
There is a site on the server with a sheaf "Apache+Nginx". There was a need to close access to the site through public proxies. What is the best way to do this?
There was an idea to block via .htaccess, but the IP blacklists are quite large - wouldn't that slow things down?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikiforov, 2015-09-08
@DanielOlivo

If you need to tightly block access - iptables or nginx

deny IP;
deny subnet;
(if you have nginx in front, I hope)
For iptables, pay attention also here: serverfault.com/questions/334885/use-iptables-or-n...
If you need to block access and at the same time show blocked users some then information - serverfault.com/questions/380642/nginx-how-to-redi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question