search

Home  >  Q&A  >  body text

javascript - How to crack image hotlink protection on the front end

For example: http://img.m9vv.com/resour/xg...
The entire website cannot be opened directly. You need to visit its main domain name first: http://www.m9vv.com/1178. html
The backend should make a referral judgment. How can the front-end page bypass this judgment and achieve anti-leeching cracking through js?
I tried the iframe method, but it didn’t work. I wanted to fake the refer but found that ActiveXObjects is a method of IE. There is also a bridging method on the Internet, but it seems that it requires the cooperation of the background. Does anyone have experience in this area? I tried dom operation and wrote the src attribute of img, but I was really worried about this method

为情所困为情所困2739 days ago637

reply all(3)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-19 10:47:30

    <meta name="referrer" content="never">

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-19 10:47:30

    I just opened an incognito window. Your image link can be accessed directly. You can use iframe to bypass the referer

    reply
    0
  • 某草草

    某草草2017-05-19 10:47:30

    Google has been unable to find a solution for a long time. The current method is to create an iframe on the page, link to the other party’s main domain name, display: none; and then request the image; disadvantages——————The loading speed is very slow and the problem can be serious , there is no other way

    reply
    0
  • Cancelreply