我如何阻止别人的域名指向我的网站? [英] How do I block someone else's domain pointing to my website?

查看:412
本文介绍了我如何阻止别人的域名指向我的网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跑我的Linux的VPS的网站专用IP几个星期前,我发现别人域名指向我的网站

Hi I am running my website in Linux VPS with dedicated IP few weeks ago I found someone else domain is pointing to my website

Ex ::  mydomain.com     === server my site content
       otherdomain.com  ===  also server my site content

如果我更新或修改其得到更新其他域太..

If I update or modify its getting updated on other domain too..

请需要帮助的任何设置,以prevent这种

please need help any settings to prevent this

搜索许多论坛后,我发现基于虚拟主机的名称
如何在VPS的Linux实现这个请指导我
或者针对此问题的其他解决方案,请大家帮忙

after searching many forums I found the name based virtual host how to implement this in VPS Linux please guide me or any other solution for this issue please help

我也尝试看看反向IP查找我的IP显示两个域名
另1是坏的域名指向我的服务器/ IP,但我的服务器上的网站内容..how停止这种请帮助

I also try to see the reverse IP lookup my IP shows two domain another 1 is bad domain is pointing my server/ IP but it server my site content ..how to stop this please help

推荐答案

如果您所访问的不是你有没有办法喜欢..不是指向您的服务器,但是你可以通过使用虚拟主机的将它指向一个serperate页

If the domain is not yours there is no way to like.. not point it to your server, however you can point it to a serperate page by using VirtualHost's

用以下方法做到这一点,创建一个具有所需的HTML / PHP文件的文件夹里面说的页面不存在或没有任何

Do this by doing the following, create a folder with a desired html / php file inside saying that the page is not existing or whatever

然后编辑您的VirtualHosts文件,假设你使用Apache,该文件将在以下目录:
的/ etc / apache2的/网站的可用/
打开名为文件默认并添加下列code:

then edit your VirtualHosts file, let's say your using apache, that file would be in the following directory: /etc/apache2/sites-available/ open the file called default and add the following code:

<VirtualHost *:80>
DocumentRoot /www/example2
ServerName www.example.org
</VirtualHost>

这篇关于我如何阻止别人的域名指向我的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆