News for hackers. Stuff that matters.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by DoctorOW on Monday December 12, 2022 @08:18AM (#33954331)
You could add a data attribute to the html tag of the document with the current URL, I.E.

  <html data-path="https://www.saashub.com/about">
then hide the full page with:

  html {display: none;}
  html[data-path*="saashub.com"] {display:block;}
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by emsixteen on Monday December 12, 2022 @09:52AM (#33955208)
This seems quite elegant and easy. Obviously in addition to other measures, but I like it.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by DoctorOW on Monday December 12, 2022 @09:54AM (#33955238)
Honestly this is my favorite HN post in a while I've had a lot of fun thinking over this challenge.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by asciii on Monday December 12, 2022 @11:34AM (#33956696)
I'm with you, too!