Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

281
Visualizações
How to redirect/open an external link without referer in header

How Can I Emulate A Website Visit Within The html/js Script

The Purpose is To Visit the url without referer or host header because the website/API I visited only gives the json response if the header has no referer/host else if the refer/host is that website's domain

When a user copy the url and paste it on browser it will return the json results but if the url is being redirected the header will have my websites as referer and the website refuses to return results

I also tried opening new tab using js but still it didn't work

<button class="savetodiskbtn" onclick="window.open('https://doodstream.com/?add_my_acc=1&op=videos_json&token=ak1b55nfbm2bbohgqu4dly30')"><i class="fa fa-upload"></i> Save To Disk</button>

If the referer is from another website The website returns As In This Image

And if the user copy the url and open The website returns json (or the website login page if user is not loggedin) As In This Image

I Just Need a js or anything that helps me to emulate the action just like a user copy url and browse it (to be used in a website)

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda