1
两个域名加入到一个网站。与网站C.内容限制 - 取决于域名
在contact.php页, 当域A, 用户视图我想隐藏在contact.html一些内容 例如,域A和B的链接。 例如,图像,文字等...
但是在域B中,他可以看到所有的contact.php页面。
两个域名加入到一个网站。与网站C.内容限制 - 取决于域名
在contact.php页, 当域A, 用户视图我想隐藏在contact.html一些内容 例如,域A和B的链接。 例如,图像,文字等...
但是在域B中,他可以看到所有的contact.php页面。
该演示将在控制台登录网站当前域名
var current_domain = document.location.hostname;
console.log(current_domain);
if (current_domain == "example.com") {
//code for hiding stuff goes here
} else if (current_domain == "example21.com") {
//code for that page here
}