I
I
Igor Gunkin2019-01-16 21:32:53
linux
Igor Gunkin, 2019-01-16 21:32:53

Can I block an IP address on my site?

How can I block access to the server(debian 7), site, by ip?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mysterion, 2019-01-16
@Mysterion

iptables -L --line-numbers
iptables -D INPUT <line number>

S
SOTVM, 2019-01-17
@sotvm

to the root of the site file .htaccess
order allow,deny
deny from desiredIP
allow from all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question