javascript - How to crack image hotlink protection on the front end
为情所困
为情所困 2017-05-19 10:45:30
0
3
573

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

为情所困
为情所困

reply all (3)
Peter_Zhu

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

    某草草

    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

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!