Re:Ask HN: Someone is proxy-mirroring my website, can I do a...
by ChrisMarshallNY on Monday December 12, 2022 @09:15AM
(#33954800)
How about something like...
body[href*= "<OFFENDING URL>"] {
background-image: url("http://goatse...");
}
Ala: http://ascii.textfiles.com/archives/1011
Re:Ask HN: Someone is proxy-mirroring my website, can I do a...
by petepete on Monday December 12, 2022 @11:08AM
(#33956243)
Or just make the whole page rotate
body[href*= "<OFFENDING URL>"] {
animation: rotation 20s infinite linear;
}
@keyframes rotation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(359deg);
}
}
Re:Ask HN: Someone is proxy-mirroring my website, can I do a...
by hbn on Monday December 12, 2022 @11:13AM
(#33956303)
We're trying to punish the people running the proxy mirror, not the users who stumble upon them just trying to use the site
Re:Ask HN: Someone is proxy-mirroring my website, can I do a...
by LawTalkingGuy on Monday December 12, 2022 @01:09PM
(#33957960)
You could look at it as trying to get them blocked by search engines. Can you detect when they're proxying a search bot as opposed to a user? As for punish, you don't have to make it eye-bleach, just enough to make it firmly NSFW so nobody can get any business value from it, or even use it safely at work.
A little soft NSFW would also greatly accelerate them being added to a block list, especially if you were to submit their site to the blocklists as soon as you started including it. You can include literally anything that won't get you arrested. Terrorist manifestos, the anarchists cookbook, insane hentai porn... Use all those block categories - gore/extreme, terrorist, adult, etc.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a...
by ChrisMarshallNY on Monday December 12, 2022 @11:56AM
(#33957011)
In that case, write some JS, that wanders around the Hubble site, randomly downloading full-res TIFF images for the background, or that randomly displays Disney images.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a...
by JohnAaronNelson on Monday December 12, 2022 @07:50AM
(#33954112)
Seems like it would be fairly easy to use this pseudo selector, and apply it to every element on the page. Making them show up as empty to the user
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!
Re:Ask HN: Someone is proxy-mirroring my website, can I do a...
by ignoramous on Monday December 12, 2022 @04:01PM
(#33960219)
If they're rewriting html, I guess sanitizing css won't be beyond them.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a...
by sublinear on Monday December 12, 2022 @12:01PM
(#33957085)
I know this is just a game that never ends, but if they're already rewriting the HTTP requests what's stopping them from rewriting the page contents in the response?
SRI is for the situation where a CDN has been poisoned, not this.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a...
by DoctorOW on Monday December 12, 2022 @03:04PM
(#33959453)
It might not explicitly be what SRI is meant for but it'll narrow the proxy's options to:
A. Blank page
B. Let the find and replace update the CSS. Generate new hashes in the HTML.
C. Find someone new to pick on.
B is time and potentially computationally expensive, so it makes C a better option.
[0]: https://caniuse.com/mdn-css_at-rules_document