Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to disable the access of an ip to a virtual host website

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article uses easy-to-understand examples to introduce how virtual hosting sites prohibit a certain ip access, the content is very detailed, interested friends can refer to, hope to be helpful to you.

Our website may be deliberately attacked for a variety of reasons, and when we encounter an attack, we can see from the website log that there is a wide range of IP or a single one, and continue to visit it. After such an obvious phenomenon, we can use the IP deny Manager to disable access.

Many virtual space vendors do not provide the ability to block IP access in host management, of course, if there is you, it will be much more convenient. If it is not provided, we will add the field that blocks IP in the htaccess file.

If there is a blocking function, find the "IP reject Manager" in the cpanel panel of the host. Use the IP rejection manager to block the ddos attack site, through the log, see the attacker's IP, and then add it.

If there is no blocking feature, but to block a particular IP, you can use:

Block a particular IPorder allow,denydeny from 10.16.0.1allow from all

If you want to block multiple IP addresses, you only need to add a few more deny from

Block multiple IPorder allow,denydeny from 10.16.0.2deny from 10.16.0.3deny from 10.16.0.4allow from all

For individual webmasters, most of them are not very clear about the network, and there is no way to thoroughly solve the attack problem. Because of the website space we use, the monthly traffic is limited, and once the traffic is consumed, this month's site cannot be opened.

On the virtual hosting site how to prohibit an ip access to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report