Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

100
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda