News for hackers. Stuff that matters.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by santah on Monday December 12, 2022 @08:41AM (#33954506)
Same thing happened to me and my service (https://next-episode.net) almost 2 years ago.

I wrote a HN post about it as well: https://news.ycombinator.com/item?id=26105890, but to spare you all the irrelevant details and digging in the comments for updates - here is what worked for me - you can block all their IPs, even though they may have A LOT and can change them on each call:

1) I prepared a fake URL that no legitimate user will ever visit (like website_proxying_mine.com/search?search=proxy_mirroring_hacker_tag)

2) I loaded that URL like 30 thousand times

3) from my logs, I extracted all IPs that searched for "proxy_mirroring_hacker_tag" (which, from memory, was something like 4 or 5k unique IPs)

4) I blocked all of them

After doing the above, the offending domains were showing errors for 2-3 days and then they switched to something else and left me alone.

I still go back and check them every few months or so ...

P.S. My advice is to remove their URL from your post here. This will not help with search engines picking up their domain and ranking it with your content ...

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by bvinc on Monday December 12, 2022 @11:15AM (#33956337)
Might I suggest a spin on this: instead of blocking the IPs, consider serving up different content to those IPs.

You could make a page that shames their domain name for stealing content. You could make a redirect page that redirects people to your website. Or you could make a page with absolutely disgusting content. I think it would discourage them from playing the cat and mouse game with you and fixing it by getting new IPs.

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by hedora on Monday December 12, 2022 @12:56PM (#33957806)
One possibility: Serve different content, but only if the user agent is a search engine scraper. Wait a bit to poison their search rankings, then block them.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by zhengyi13 on Monday December 12, 2022 @01:34PM (#33958334)
... be careful with this.

Assuming you've monetized your content with ads, depending on your ads provider, this may have deleterious effects on your account with that provider, as they may then assume you're trying to game ads revenue.

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by chipsa on Monday December 12, 2022 @04:52PM (#33960952)
The mirror is almost certainly running their own ads, given they strip the JavaScript out.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by antifa on Wednesday December 14, 2022 @07:57AM (#33982821)
If those IPs are VPN services, you might be negatively affecting all VPN users in addition to the proxy.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by nomel on Monday December 12, 2022 @12:06PM (#33957145)
> Or you could make a page with absolutely disgusting content.

Not if you value the people who might move to the real domain.

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by Mikealcl on Monday December 12, 2022 @12:39PM (#33957590)
You could do this without effecting normal traffic depending on uniqueness of ip doing the scraping.

Love the idea.

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by swsieber on Monday December 12, 2022 @12:42PM (#33957621)
I think you missed the point - if people show up at $PROXY expect nice stuff but see junk, then they won't move over to $REAL and instead blame $REAL.

E.g. you'd like some way to redirect people from $PROXY site to $REAL site, and disgusting content on $PROXY won't do that - it'll reflect poorly on $REAL

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by heelix on Monday December 12, 2022 @01:02PM (#33957868)
If you can identify the crawler - you can provide 'dynamic' content for that specific user context.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by nomel on Monday December 12, 2022 @01:27PM (#33958214)
It's a proxy, so there's no "crawler". It's just an agent relaying to the user. Passing something to this proxy agent just passes it directly to the user.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by beirut_bootleg on Monday December 12, 2022 @06:07PM (#33961792)
I've tried this with zip bombs, but I can't tell how well it worked out.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by RektBoy on Tuesday December 13, 2022 @05:55AM (#33967116)
Wait what? Care to follow on this hypothetical topic please?
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by michaelcampbell on Tuesday December 13, 2022 @07:22AM (#33967937)
zip bombs are files that when unzipped expand to enormous sizes. I'm not sure if OP put one to be downloaded for the offender to kill their disk space, or if you could stream one hoping the client browser/scraper would attempt to decompress and crash for memory or disk outages?

That's my read on it anyway.

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by NicoJuicy on Monday December 12, 2022 @06:15PM (#33961864)
Did the same things for spam bots :p
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by sprior on Monday December 12, 2022 @03:49PM (#33960068)
"Or you could make a page with absolutely disgusting content." You've never heard of Rule 34, have you...
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by walrus01 on Monday December 12, 2022 @03:59PM (#33960192)
obviously somebody too young to have seen the method of using an http redirect to the goatse hello.jpg for unwanted requests

edit: or when somebody embed-links your image inside some forum, replace the original filename with the contents of hello.jpg

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by marklit on Monday December 12, 2022 @02:28PM (#33959014)
As soon as you have a few of their IPs, look them up on ipinfo.io/1.2.3.4 and you'll find they probably belong to a handful of hosting firms. You can get each firm's entire IP list on that page and add all of those CIDRs to your block list. Saves you needing to make 30K web requests.

In most countries in the western world, there are 3-4 major ISPs and this is where 99% of your legit traffic comes from. Regular people don't browse the web proxying via hosting centres as Cloudflare will treat them with suspicion on all the websites they protect.

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by reincoder on Monday December 12, 2022 @02:38PM (#33959143)
The site seems to be hosted on OVH cloud. OP should report this to them.

https://www.ovh.com/abuse/

Found the hosting information from here: https://host.io/us.to

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by KomoD on Monday December 12, 2022 @04:56PM (#33961004)
Consider reaching out to Afraid.org first, https://freedns.afraid.org/contact/

They are the ones providing the subdomain

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by ElijahLynn on Monday December 12, 2022 @03:08PM (#33959526)
THIS ^^
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by rexreed on Monday December 12, 2022 @08:56AM (#33954632)
For 2) you mean you loaded it from the adversary's proxy site, just to clarify?
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by santah on Monday December 12, 2022 @09:06AM (#33954715)
Yes, constructed the honeypot URL using the proxy site and called it (thousands of times) so I can get them to fetch it from my server through their IP so I can log it.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by WirelessGigabit on Monday December 12, 2022 @10:06AM (#33955379)
They literally proxy your website? I thought they'd cache it... that makes more sense now in your statement that you hit their website with a specially formatted url. Since they pass that through to you you can filter on that.

Also: since you say 4k-5k IPs... any of them from cloud providers? And specific location?

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by santah on Monday December 12, 2022 @11:19AM (#33956428)
No cloud providers as far as I'm aware.

They were all from the same 4-5 ASN networks, all based in Russia.

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by adventured on Monday December 12, 2022 @01:30PM (#33958255)
If you happen to use Cloudflare.... Cloudflare -> Firewall rules -> Russia JS Challenge (or block)
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by justsomehnguy on Monday December 12, 2022 @12:03PM (#33957110)
Residential proxy botnet.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by tofuahdude on Monday December 12, 2022 @01:29PM (#33958246)
Why do they bother doing this domain proxy stuff in the first place?
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by justsomehnguy on Monday December 12, 2022 @02:42PM (#33959174)
High quality content with a good standing in Google => unique and quality impressions => more revenue from the ads they insert in the content.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by than3 on Tuesday December 13, 2022 @06:49PM (#33978001)
There is also the potential to use it as a watering hole for more sophisticated or subversive measures where they subtly change what you post to promote something you don't actually promote (so at some point they deviate from pure proxy to mitm).
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by everybodyknows on Monday December 12, 2022 @10:28AM (#33955645)
Also for (2), any worries that your own providers might imagine you're trying to mount some half-baked DOS campaign?
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by santah on Monday December 12, 2022 @11:11AM (#33956286)
Wasn't really worried about that.

I didn't do it as a super quick burst, but in a space of multiple hours.

First because the proxy servers were super slow and second - I couldn't automate it - their servers had some kind of bot detection which would catch me calling the URLs through script.

Instead, I installed a browser extension which would automatically reload a browser tab after specified timeout (I've set it to 10 sec or something) and I opened like 50 tabs of the honeypot URL and left it there to reload for hours ...

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by RektBoy on Tuesday December 13, 2022 @05:58AM (#33967152)
Look out as this is not optimal.

Since they will fingerprint your browser. But it looks like they were people with low IQ, so you were fine.

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by blinding-streak on Monday December 12, 2022 @10:46AM (#33955907)
Side note: great idea for a website. This could be really helpful. You got a new user here.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by mhlakhani on Monday December 12, 2022 @11:07AM (#33956219)
I have to agree, my SO has been looking for something like this for a long time. Signing up today!
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by focusedone on Monday December 12, 2022 @11:16AM (#33956375)
Wow, hadn't seen this before. Awesome site!
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by santah on Monday December 12, 2022 @11:35AM (#33956699)
Thanks!
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by otikik on Monday December 12, 2022 @03:51PM (#33960100)
Once you have their IP addresses you can make them serve anything you want. Set your imagination free.

For starters: copyright-infringing material.

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by layer8 on Monday December 12, 2022 @04:21PM (#33960509)
Unless you hold the necessary rights to the copyrighted material, that would make you a copyright infringer yourself.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by martin_a on Monday December 12, 2022 @06:21PM (#33961914)
How would they prove that when they label every content as it was their own?
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by layer8 on Monday December 12, 2022 @08:48PM (#33963569)
Presumably they'll tell the copyright holder that sue them where they got it from, and provide evidence for that, and then the copyright holders will (also) sue the original source.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by chris_wot on Monday December 12, 2022 @10:52AM (#33956002)
Makes me wonder if you could switch serving content based on the URLs. So they redirect back to your website. Or display images marked as copyrighted.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by santah on Monday December 12, 2022 @11:06AM (#33956212)
I tried but couldn't redirect back to my website as they stripped / rewrote all JS.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by rot13xor on Monday December 12, 2022 @11:30AM (#33956631)
You could have a "stolen content" pure HTML/CSS banner that gets removed by Javascript. Only proxy site visitors will see the banner because the proxy deleted the Javascript.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by dorgo on Monday December 12, 2022 @12:09PM (#33957186)
some people like me will see the "stolen content" banner on the original website. And attackers can trivially remove it as soon as they get aware of it.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by t0suj4 on Monday December 12, 2022 @11:22AM (#33956478)
Would it be possible to hide a hash/encoded URL somewhere in JS and delete the site/redirect if the hash/encoded URL contained something unexpected?
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by NullPrefix on Monday December 12, 2022 @02:47PM (#33959224)
>4) I blocked all of them

Don't block them. Show dicks instead

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by stanislavb on Monday December 12, 2022 @02:32PM (#33959063)
Thanks for the advice. I will give a go to some of these. p.s. I can't remove the URL as the post is not editable anymore. I'm just waking up... in Australia.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by DoreenMichele on Monday December 12, 2022 @02:34PM (#33959081)
The mod can though, if you email him at [email protected].
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by khiqxj on Monday December 12, 2022 @02:11PM (#33958818)
8chan like every forum ever has dumb moderators who dont know how to do their job / over extend their hand (and the moderation position of web forums seems to attract people with certain mental disorders that make them seek out perceived microinjustices which the definition thereof changes from day to day)

there were a bunch of sites mirroring 8chan to steal content

these were useful because they had both a simpler / lighter / better user interface (aside from images being missing), and posts / threads that were deleted would stay on the mirrors. being able to see deleted posts / threads was highly useful as the moderation on such sites tends to be utterly useless and the output of a random number generator. it was hilarious reading "zigforum" instead of "8chan" in all the posts as the mirror replaced certain words to thinly veil their operation. they even had a reply button that didnt seem to work or was just fake.

tl;dr the web is broken and only is good when "abused" by proxy/mirrors

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by nuccy on Monday December 12, 2022 @11:31AM (#33956646)
Instead of blocking by IP, just check SERVER_NAME/HTTP_SERVER variables in your backend/web server (or even in JavaScript of the page check window.location.hostname) and in case those include anything but original hostname, redirect to the original website (or serve different content with a warning to the visitor). If you have apache2/nginx this can be easily achieved by creating a default virtualhost (which is not your website), and additionally creating explicitly your website virtualhost. Then the default virtualhost can have a proper redirect while serving any other hostname.

Those variables are populated by the browser, unless proxying server is rewring them, your web-server will be able to detect imposter and serve him/her with a redirect. If rewrites are indeed in place, then check in the frontend. Blocking by IP is the last option if nothing else works.

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by michaelmior on Monday December 12, 2022 @11:44AM (#33956828)
As the OP mentioned, JS is stripped and URLs are being written, so I doubt either of those approaches will work.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by nuccy on Monday December 12, 2022 @11:48AM (#33956894)
Making js essential is not that hard, right? Just "display: none" on the root element, which is removed by js :)

More sophisticated options can been found in other comments.

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by michaelmior on Monday December 12, 2022 @12:14PM (#33957265)
Forcing all users of your website to use JavaScript to get around a scammer is pretty heavy-handed.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by kelnos on Monday December 12, 2022 @01:38PM (#33958390)
Presumably OP would only have to do this for a limited time, until the scammer gives up and moves on to an easier target. It's not the best, but I don't think it's as bad as you say.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by psychphysic on Monday December 12, 2022 @02:13PM (#33958843)
Just explain why in a way that vanishes with JS enabled. Like other have said it'll not need to be used for long.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by krater23 on Monday December 12, 2022 @01:53PM (#33958563)
Show me one website that today really works without javascript.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by jethro_tell on Monday December 12, 2022 @02:12PM (#33958820)
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by c22 on Monday December 12, 2022 @02:37PM (#33959132)
I've been surfing without javascript since 2015. Most websites continue to work fine without it (though some aesthetic breakage is pretty standard). About 25% of sites become unusable, usually due to some poorly implemented cookie consent popup. I don't feel like I'm missing out on anything by simply refusing to patronize these sites. I will selectively turn JS on in some specific cases where dynamic content is required to deliver the value prop.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by cpleppert on Monday December 12, 2022 @05:06PM (#33961109)
Same, I even wrote a chrome extension to enable js on the current domain using a keyboard shortcut; but it has gotten to be more of a pain especially on landing pages.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by michaelmior on Monday December 12, 2022 @02:39PM (#33959149)
> Most websites continue to work fine without it

> About 25% of sites become unusable

These two statements seem pretty contradictory. 75% feels like a low threshold for "most."

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by c22 on Monday December 12, 2022 @03:44PM (#33960007)
Most is more than half.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by michaelmior on Monday December 12, 2022 @04:37PM (#33960772)
In casual conversation, I would never interpret most as being solely more than half. However, it seems like perhaps most people agree with you :)

https://english.stackexchange.com/questions/55920/is-most-eq...

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by c22 on Monday December 12, 2022 @05:18PM (#33961223)
In my entirely casual understanding of English most means the set that has more members than any other. When the comparison is binary (sites that work vs sites that don't) then "more than half" is both necessary and sufficient as a definition.

When comparing more than two options most could be significantly less than half (e.g. if I have two red balls, and one ball each of blue, purple, green, orange, pink, and yellow, then the color I have the most of is red, despite representing only one quarter of the total balls.)

That said, any attribute attaining more than half of the pie must be most.

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by michaelmior on Monday December 12, 2022 @06:36PM (#33962064)
In retrospect, the never in my previous comment was certainly an overstatement. While I agree with your reasoning, there is often a distinction between technically correct use of language, and what the hearer is likely to understand from what is said.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by crooked-v on Monday December 12, 2022 @06:00PM (#33961712)
Even JS-heavy websites are moving towards being usable without Javascript with server side rendering.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by ranger_danger on Sunday December 25, 2022 @12:43AM (#34124673)
most websites these days already use javascript, and all modern browsers already support it. unless you're some really niche turbonerd website, nobody is going to notice or care...
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by nuccy on Monday December 12, 2022 @11:52AM (#33956951)
The other kind of problem is if the website is not really proxied but rather dumped, patched and re-served. In such case the only option (if JavaScript frontend redirect doesn't work) is blocking by IP the dumping server.

To identify IPs, as pointed in the root comment of this thread, you can create a one-pixel link to a dummy page, which dumping software would visit, but a human wouldn't. So you will see who visited that specific page and block those IPs for good.

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by michaelmior on Monday December 12, 2022 @12:47PM (#33957679)
I would think you'd want to be careful about search engines with that approach. Assuming the OP wants their site indexed, you could end up unintentionally blocking crawlers.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by tofuahdude on Monday December 12, 2022 @01:28PM (#33958236)
Tail wagging the dog is never a good answer.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by klyrs on Monday December 12, 2022 @03:18PM (#33959662)
It's trivial to strip that "display: none" out, too.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by brazzledazzle on Monday December 12, 2022 @05:51PM (#33961627)
Yea if they're already rewriting content to serve ads (likely since they're probably not doing this for altruistic reasons) you're just putting off the inevitable. While blocking or captcha'ing source IPs is also a cat and mouse game it's much more effective for a longer period of time.
Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by mnutt on Monday December 12, 2022 @12:52PM (#33957756)
Maybe an html <meta> redirect tag that bounces through a tertiary domain before redirecting to your real one? If they noticed you were doing it they could mitigate it, but they might deem it too much effort and just go away.

You might also start with the hypothesis that they're using regex for JS removal and try various script injection tricks...

Re:Ask HN: Someone is proxy-mirroring my website, can I do a... by michaelmior on Monday December 12, 2022 @01:11PM (#33957994)
If they're already stripping JS, I can't imagine it would be a lot of work to also remove the <meta> redirect.