dongmao3131 2016-08-08 12:44
浏览 54

重定向隐藏链接名称的链接

I have 2 links.

For example - When a person clicks on the button "click here" - it should show www.google.com on the link bar, but it should redirect to "www.yahoo.com" and the person should not be able to see this "www.yahoo.com".

Yahoo and google are just used as an example.

How can I do that?

  • 写回答

2条回答 默认 最新

  • donglin1192 2016-08-08 13:02
    关注

    I would "recommend" using a full page iframe like this:

    Upload a file to your server that contains this (in your example your server would be Yahoo!)

    <!DOCTYPE html>
    <html>
    <head>
      <style>
        body, html, iframe {margin: 0; padding: 0; height: 100%; width: 100%; border: none}
      </style>
    </head>
    <body>
      <iframe src="https://google.com">
    </body>
    </html>
    

    This should work alright for you and give the effect that the link is actually located on your own domain. Causing the APK download to look like it's on your machine.

    The source domain can break free from the iFrame and therefore break your illusion. Many sites will do that, but it will still work properly for most of your needs.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题