search
HomeTopicsPagoda PanelIP access is prohibited in Pagoda Apache environment

IP access is prohibited in Pagoda Apache environment

The following tutorial column of Pagoda Panel will introduce to you the tutorial on prohibiting ip access (anti-malicious analysis) in the Pagoda Apache environment. I hope it will help you if you need it. My friends are helpful!

Tutorial on prohibiting IP access (anti-malicious analysis) in the Apache environment

You need to modify the Apache configuration file httpd.conf to achieve this. The specific code is as follows:

NameVirtualHost 121.*.*.*
 
<VirtualHost 121.*.*.*>
ServerName 121.*.*.*
<Location />
Order Allow,Deny
Deny from all
</Location>
</VirtualHost>
 
<VirtualHost 121.*.*.*>
DocumentRoot /var/www/nowamagic/
ServerName www.nowamagic.net
</VirtualHost>
 
<VirtualHost 121.*.*.*>
DocumentRoot /var/www/nowamagic/
ServerName nowamagic.net
</VirtualHost>

The first part of the code is The implementation rejects any access request directly through the IP 121.*.*.*. At this time, if you use 121.*.*.* to access, you will be prompted to deny access.

The second part of the code is to allow access through the domain name http://www.nowamagic.net/, and the home directory points to /var/www/nowamagic/ (the server OS here is CentOS)

The third part of the code allows domain name access without www. It should be written together with the above merge.

The above is the detailed content of IP access is prohibited in Pagoda Apache environment. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:boke112. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.