Home > Backend Development > PHP Tutorial > 恶意解析的有关问题

恶意解析的有关问题

WBOY
Release: 2016-06-13 12:09:21
Original
895 people have browsed it

恶意解析的问题
我的服务器是独立ip,前几天有其它域名解析到我的服务器了,我现在把解析过来的域名做了301跳转,但这个只能防止现在这个域名的解析,
请教,怎么能设置禁止ip访问服务器,并且设置特定的域名才能访问,
网上找了个禁止ip访问,设定特定域名才能访问的方法

<br />NameVirtualHost 221.*.*.* <br /><VirtualHost 221.*.*.*> <br />ServerName 221.*.*.* <br /><Location /> <br />Order Allow,Deny <br />Deny from all <br /></Location> <br /></VirtualHost>     <br /><VirtualHost 221.*.*.*> <br />DocumentRoot "/www/web" <br />ServerName www.xxx.cn <br /></VirtualHost><br /><br /><br />
Copy after login


但是用了这个,服务器都无法重启了,用的 appserv 服务器,求指点
------解决思路----------------------
http://www.uddtm.com/server/web/478.html
------解决思路----------------------
网上能找到的都和你主贴示例的一样
其实这都是一样的,用设置虚拟主机来误导请求进入陷阱

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template