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

99
Visualizações
Trying to prevent domain mirroring

My URL = mysiteurl/example-post

URL B = mirroringsiteurl/example-post

All HTML code at "URL B" is the same as the one at my URL, and when I change anything at my site, "URL B" will be refreshed to be identical to my site.

The only difference is that the mirrored site has different CSS colors and branding.

I was advised to look at a JavaScript solution that checks document.location.href and if it's not my site, redirects it somewhere else.

Would something like this help?

// Blocking 1 
if (parent.frames.length > 0) { parent.location.href = self.document.location } 

// Block 2 
var domain = "mysiteurl"; <--- at this they auto change my domain to their domain

var redirect = "http://google.com"; if( (location.hostname != domain) && (location.hostname != "www."+domain) ) { location.href = redirect; } 
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