Lurker News
Back to discussion

Comment by michaelmior

michaelmior2 replies#
As the OP mentioned, JS is stripped and URLs are being written, so I doubt either of those approaches will work.
nuccy4 replies#
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.

nuccy1 reply#
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.

michaelmior#
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.
michaelmior4 replies#
Forcing all users of your website to use JavaScript to get around a scammer is pretty heavy-handed.
kelnos#
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.
krater239 replies#
Show me one website that today really works without javascript.

Continue this thread — 9 replies

psychphysic#
Just explain why in a way that vanishes with JS enabled. Like other have said it'll not need to be used for long.
ranger_danger#
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...
tofuahdude#
Tail wagging the dog is never a good answer.
klyrs1 reply#
It's trivial to strip that "display: none" out, too.
brazzledazzle#
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.
mnutt1 reply#
Maybe an html 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...

michaelmior#
If they're already stripping JS, I can't imagine it would be a lot of work to also remove the redirect.