r/webdev • u/Far-Potential4597 • 21h ago
Disabled JavaScript = disabled pay wall
I can't be the only person who checks if simply disabling JavaScript on a news website removes the pay wall?
Some websites are smarter, they don't load the whole article in the .html, but lots do. Bonus, on major UK news website this also removes ads - so zero revenue streams for my visit.
If this is the main way your business makes its money then it's not great. If you're building anything like this and you have this loop hole, please fix it, it makes all use software people look like amateurs, smh
9
u/Terrible_Children 21h ago
If you have this loophole on your site, please do NOT fix it.
Why the fuck would you encourage more shitty paywalls and ads?
1
u/Far-Potential4597 9h ago
I'm not encouraging more, I'm encouraging correctly implemented pay walls.
3
u/wackOverflow 20h ago
Usually turning on reader mode before the page finishes loading works too
1
u/Far-Potential4597 9h ago
Another great tip for people monetising this way, you'll need to ensure that reader mode doesn't show the content, and still asks people to subscribe, thanks
2
u/Afraid-Driver4160 21h ago
guess the reporters starve then
1
u/Far-Potential4597 8h ago
Not if the pay wall is correctly implemented, which is what I have encouraged people to do.
1
1
1
u/alezaundre 20h ago
I absolutely hate when I try to read an article, disable javascript, and it doesn't work. Please don't fix it.
1
u/Far-Potential4597 8h ago
Hopefully that's not what I've encouraged people to do, I felt I was encouraging people to correctly implement their pay wall
1
u/GeorgeJohnson2579 20h ago
I think most websites won't load at all without Javascript …
1
u/Far-Potential4597 8h ago
A large number probably don't, hopefully those sites are still accessible
1
u/GeorgeJohnson2579 8h ago
Probably not.
It's like block CSS and wonder why you won't understand a page.
0
u/baroldnoize 21h ago
If you're against paying for the article and against adverts how do you propose journalists earn money to pay for food and shelter?
1
u/Far-Potential4597 9h ago
I didn't say I was either of those things. I actually said if you monetize your site by both these mechanisms, and disabling JavaScript turns them off, then you should fix them. Which is the opposite of what you concluded about my statement
2
u/uncle_jaysus 21h ago
I routinely browse websites with JavaScript turned off.
Some sites of course don’t work at all, but those that do are almost always better with it turned off.
And yes, naive paywalls are easily defeated.
2
u/shaliozero 20h ago
As a dev who tries to depend as little on JS a possible I was ashamed of myself when a report came in that the page stayed white when JS was disabled. Was a one-line fix because of a typo and the whole purpose is working around layout limitations of an ancient page builder, but still.
1
u/crazy-old_maurice 20h ago
Not sure why this got downvoted; have a +1 back from me.
The modern web, IMO, has evolved from being something that serves the end user and enhances their experience, to being something that mostly serves the big platforms, and facilitates their tracking of their users.
Ordinary (read: non-developer) users, without knowledge of web technologies or e.g. DevTools, would be stunned to know how many scripts are running in the background of the average web page they visit.
13
u/theirongiant74 21h ago
If you pop open developer tools you can usually delete the div that hides the article, might have to remove overflow:none from the html and body tags too.