问题标签 [url-masking]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
763 浏览

wordpress - 如何屏蔽被屏蔽域的内部链接

我从 godaddy 购买了一个高级域,并将它与一个带有域掩码的免费虚拟主机帐户(安装了 wordpress)一起使用。我掩盖了主域,但是当我在新选项卡中打开一些链接(比如关于我们的页面)时,它会显示免费网络主机(原始域)的 URL,例如。原始免费主机 url:example.byethost.com 当我在新选项卡中打开(比如“关于我们”页面)时用 www.example.org 掩盖它,而不是新选项卡中的 url 显示 example.byethost.com/aboutus 这不是我想要的 url想要它作为 www.example.org/aboutus

请帮忙谢谢 Ps:我是新手

0 投票
0 回答
494 浏览

cookies - How to set cookies for url masking

I have a sub-domain in a domain called firstdomain.com as subdmain.firstdomain.com

I have another domain as secondomain.com.

subdmain.firstdomain.com is pointing to the IP address of secondomain.com.

secondomain.com is running on a nginx server. The nginx server then forwards the request (proxy pass) to my application server running on a private network.

What I want to do is as following: If someone types in a url as subdomain.firstdomain.com, the nginx needs to recieve the request at secondomain.com (I think I need to have server blocked with subdomain.firstdomain.com) and do a proxy pass to application server in my private network and gets the response and sends back to the client. This needs to be done without changing the URL in the User browser (i.e. it has to stay as subdomain.firstdomain.com.)

Challenge to this problem is that the secodomain writes cookies (session information) which is used further by secondomain.com.

Any help will be appriciated.

}

0 投票
1 回答
64 浏览

wordpress - 停止网址屏蔽

寻求帮助。我有人使用域掩码来克隆属于我的站点。我已插入:

进入我自己的标题,但它仍然设法从我的网站中提取内容并将其显示在 iframe 中。该网站是我正在使用的wordpress。我插入:

也进入 htacess。一个都没有工作。他们还有其他方法可以做到这一点吗?

0 投票
0 回答
852 浏览

url - 你如何在 HAProxy 中屏蔽 URL?

有没有办法在 HAProxy 中进行 URL 屏蔽?我想要一个指向我的负载均衡器的 URL,即www.example.com,重定向到另一个应用程序的另一个 URL。但是,我希望用户的浏览器仍显示原始 URL(www.example.com)。我该怎么办?

0 投票
2 回答
1221 浏览

.htaccess - 如何使用屏蔽将子目录重定向到新域?

我有一个带有子目录的 URL,我想转发到另一个域,我可以通过添加以下内容来实现:

选项 +FollowSymLinks RewriteEngine On Redirect 301 /youthinc http://rbcrftk.com/

/youthinc 是我的子目录域,而 rbcftk 是托管站点的域。这会转发子目录,但不会屏蔽 rbcrftk.com 域。我如何能够通过掩蔽来实现这一目标?

0 投票
1 回答
131 浏览

php - 重定向和 URL 掩码所有不存在/现有的子域到主页

一个网站 example.com 有一个子域a.example.com。这里的重点是我想在不更改 URL(URL MASK)的情况下将所有现有和不存在的子域( ex-b.example.com)重定向到example.com 。为了进一步解释,当用户输入 b.example.com 时,他必须在他的屏幕上看到 example.com,但 URL 不得从 b.example.com --> example.com 更改。我认为它可能来自 .htaccess 文件,但我未能实现。

我需要配置虚拟主机吗?由于我只能访问.htacces,我希望我能完成它

0 投票
1 回答
130 浏览

php - 从 htaccess 获取 php 中的屏蔽 URL

如何从 htaccess 中获取 PHP 中的屏蔽 URL?我已经尝试过HTTP_HOST,但是当我尝试获取在这种情况下为.nlREQUEST_URI的屏蔽 url 时,SERVER_NAME它总是返回.com 。不可靠,并不总是有任何可参考的。HTTP_REFERER

0 投票
1 回答
129 浏览

.htaccess - Mod_Rewrite 用于不断变化的 url

我有一个网址,可以说它的 blog.art.ca/Customer/AAAABBBB/index.html,我想隐藏 Customer 和 AAAABBBB。现在 AAAABBBB 可以是任何 8 个字符的字母数字代码。

我已经尝试了很多东西,但是,我要么得到 ERR_TOO_MANY_REDIRECTS,要么只是导致服务器崩溃。我们欢迎所有的建议!

0 投票
0 回答
180 浏览

ruby-on-rails - 如何屏蔽闪亮的应用程序网址?

我有一个启用了第三方 oauth 的 ruby​​ on rails 应用程序,我使用了闪亮的服务器从 ec2 实例呈现闪亮的应用程序,目前我使用 iframe 呈现闪亮的应用程序,但我不公开闪亮的应用程序 url

有什么可以从客户端屏蔽闪亮的应用程序网址吗?

0 投票
0 回答
782 浏览

twitter-bootstrap - 如何通过使用框架屏蔽域进行重定向并在移动设备上保持引导响应

我已经阅读了很多关于这些问题的帖子,但还没有找到解决方案……所以这是我的新帖子。

我所有的域都托管在 GoDaddy。主要网址是 helloguest.com.au。我已将 Heavenlyhyams.com.au 设置为通过掩码转发到 helloguest.com.au/Heavenly_Hyams,但由于框架的原因,移动设备的响应能力丢失了。

屏蔽最终 url 对我来说很重要,那么最好的解决方案是什么?

我看到一个帖子,可以通过添加一个 CNAME 来实现相同的结果,而无需屏蔽,但我不明白如何。因此,如果可能,请逐步解释。

我目前正在尝试的第二个选项是控制帧代码。因此,为此我将 Heavenlyhyams.com 设置为附加域,并在索引文件中添加相同的框架代码。似乎有几种方法可以增加框架的响应能力,所以如果有人可以在这里帮助我,我将不胜感激。