35 points · by joker765 · 6y ago · 20 comments
- Take a paywall'ed URL: https://www.nytimes.com/2013/05/05/magazine/y-combinator-sil...
- Add a dot after the domain: https://www.nytimes.com./2013/05/05/magazine/y-combinator-si...
voila, no paywall. Would love to hear an inside story about why this bug appeared.
If you've ever administered BIND, you'll note that you need to add a ending . to A records. Thats the FQDN.
Now, our browsers link cookies to domain. And interestingly enough (example.com)!=(example.com.)
That's why sites like nytimes.com. gets around the paywall, because you don't have a cookie history with that site.
The author of that article suggests that NYTimes may have misconfigured their Apache VirtualHost.
Your browser won't allow access to cookies of "nytimes.com" to the "nytimes.com." domain, as because they are different. "nytimes.com" is ambiguous.
If you were on the "example.com." network , and you typed in nytimes.com , it could be nytimes.com. OR nytimes.com.example.com.
If they want to paywall access to their site but adding a dot to the domain causes it to be bypassed, then it is misconfigured in some way, regardless of cookies.
Techniques include blocking cookies, specific JS scripts, redirecting to a different URL, changing the user-agent to pretend to be Google's indexer, changing the referer to make it appear the user is coming from a Google search, and removing or hiding elements from the page that get in the way of reading the article.
https://bitbucket.org/magnolia1234/bypass-paywalls-chrome-cl...
https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-c...
https://github.com/magnolia1234-new/bypass-paywalls-firefox-...
Anyway, nice work.