News for hackers. Stuff that matters.
Re:Twitter cut off the ability to read a tweet by fetching i... by nullify88 on Friday December 18, 2020 @03:27AM (#25465039)
You can HTTP GET tweets again by changing your useragent to Googlebot.

curl -A "Mozilla/5.0 (compatible; Googlebot/2.1; +http://google.com/bot.html)" "https://twitter.com/zarfeblong/status/1339742840142872577"

Peak SEO when users are faced with more friction than Googlebots and crawlers.

Re:Twitter cut off the ability to read a tweet by fetching i... by neiman on Friday December 18, 2020 @04:09AM (#25465249)
In 2020, the only way for netzidents to do get what they naturally deserve is by hacking.
Re:Twitter cut off the ability to read a tweet by fetching i... by 1vuio0pswjnm7 on Friday December 18, 2020 @04:50PM (#25472494)
The original web browser, NCSA Mosiac, encouraged users to change their User-Agent string, so-called "spoofing" or "masquerading".

https://raw.githubusercontent.com/alandipert/ncsa-mosaic/mas...

The User-Agent header is not mandatory and was never intended to be used by tech companies for denying access or fingerprinting. It was supposed to be used, at the user's discretion, to help with interoperability problems. RFC7231 specifically refers to user-agent masquerading by the user as a useful practice. It explicitly discourages using this header as a means of supposed user identification, e.g., fingerprinting.

https://tools.ietf.org/html/rfc7231#section-5.5.3

Re:Twitter cut off the ability to read a tweet by fetching i... by cooper12 on Friday December 18, 2020 @07:02AM (#25466281)
Setting your user agent would only be considered hacking by the same people who think the Internet is a series of pipes. The browsers themselves copy each other's user agents for interoperability, so it's far past the point that changing it to look like another agent would be considered devious.
Re:Twitter cut off the ability to read a tweet by fetching i... by nextaccountic on Friday December 18, 2020 @08:58AM (#25467086)
Yeah, but on the POV of whoever runs the network, circumventing such blocks is "abuse"
Re:Twitter cut off the ability to read a tweet by fetching i... by bzb6 on Friday December 18, 2020 @04:14AM (#25465282)
How do you “naturally deserve” to access the contents of the Twitter website?
Re:Twitter cut off the ability to read a tweet by fetching i... by devmor on Friday December 18, 2020 @10:13AM (#25467832)
Since it became a dissemination service for public officials. The moment it became illegal for the US President to block people on Twitter, it should have become illegal for Twitter to restrict access to information to the public, for the same reason.
Re:Twitter cut off the ability to read a tweet by fetching i... by morsch on Friday December 18, 2020 @05:13AM (#25465657)
I agree, that's just cruel. No one deserves being subjected to Twitter.
Re:Twitter cut off the ability to read a tweet by fetching i... by antpls on Friday December 18, 2020 @06:15AM (#25465990)
Given that trick is spreading for several sites now, the trick won't last long. Google could for example generate secret unique user agents for the biggest players. Biggest players would then only allow requests from that secret unique UA.
Re:Twitter cut off the ability to read a tweet by fetching i... by smarx007 on Friday December 18, 2020 @06:35AM (#25466105)
I think Google shares IP range blocks so you could implement a check like "if(isGooglebot(user_agent) && isGooglebotIp(ip_addr))" in your system.

Edit: ah no, they stopped https://developers.google.com/search/docs/advanced/crawling/.... I don't think 2 DNS lookups are acceptable to block a GET request but I think it can be done out of band, i.e. isGooglebotIp function can fire away a Redis query and if nothing was found, to put the ip into the DNS verify queue. A few requests later, the bot will now get banned thanks to a new record in Redis.

Re:Twitter cut off the ability to read a tweet by fetching i... by 1vuio0pswjnm7 on Friday December 18, 2020 @04:31PM (#25472318)
No need to use a Googlebot UA string. Others will work. Such as

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

Re:Twitter cut off the ability to read a tweet by fetching i... by miyuru on Friday December 18, 2020 @06:40AM (#25466128)
no need a secret unique UA. just PTR the IP and check the host.

This method is already used by stackoverflow to hide the sitemap.

https://meta.stackexchange.com/a/37272/158100

Re:Twitter cut off the ability to read a tweet by fetching i... by smileysteve on Friday December 18, 2020 @08:42AM (#25466937)
Things that would be inadvisable while most of these companies are actively under suit for antitrust issues.
Re:Twitter cut off the ability to read a tweet by fetching i... by kobalsky on Friday December 18, 2020 @04:46PM (#25472453)
it already happens, try to create your own search engine an index Amazon. captchas everywhere, their robots.txt is just for show.
Re:Twitter cut off the ability to read a tweet by fetching i... by Too on Monday December 21, 2020 @05:24AM (#25493620)
This trick is almost older than the internet, so if someone cared they would block it already. Sending google.com as Referrer is another variant of it. Before stackoverflow days this was very useful for getting past the paywall on expertsexchange for example.

I was under the impression that serving other content to google would greatly punish your pagerank and even pull you off the search results completely.

Re:Twitter cut off the ability to read a tweet by fetching i... by txdv on Friday December 18, 2020 @06:23AM (#25466039)
so much to google embracing the open web
Re:Twitter cut off the ability to read a tweet by fetching i... by 1vuio0pswjnm7 on Friday December 18, 2020 @04:53AM (#25465536)
When Twitter announced they were going to stop supporting browsers not on their list of supported browsers, I figured their attempts to block would be something more than just checking the value of the user-agent header.

They should just announce that users must use a particular user-agent header value and provide a list of approved values. If no one else compiles a list of acceptable user-agent header values for Twitter, I might have to do it.

Every user should just use the same user-agent header value. That would negate any utility of the user-agent header.

Re:Twitter cut off the ability to read a tweet by fetching i... by sethaurus on Friday December 18, 2020 @04:52AM (#25465530)
It’s been received wisdom until now that Google penalizes websites which behave differently when scraped by the Googlebot. Is that no longer the case?
Re:Twitter cut off the ability to read a tweet by fetching i... by SXX on Friday December 18, 2020 @05:19AM (#25465697)
Pinterest has proven by spamming SERP for years that if you're big enough Google will close eyes on it.
Re:Twitter cut off the ability to read a tweet by fetching i... by syshum on Friday December 18, 2020 @06:09AM (#25465958)
That applies to more than just google

If you are big enough, there are separate rules for you (or no rules)

Re:Twitter cut off the ability to read a tweet by fetching i... by smarx007 on Friday December 18, 2020 @06:42AM (#25466139)
They will serve same content to users with JS enabled and legit Googlebots while blocking clients w/o JS and bots. I don't think it violates Google rules but ofc is of questionable decency.
Re:Twitter cut off the ability to read a tweet by fetching i... by ec109685 on Friday December 18, 2020 @09:29AM (#25467394)
And Google can verify by crawling the site with and without JavaScript.

Also, google has a commercial relationship with them: https://www.convinceandconvert.com/social-media-research/twi...

Re:Twitter cut off the ability to read a tweet by fetching i... by 67868018 on Friday December 18, 2020 @11:27PM (#25475026)
You just need the word "Bot" in your user agent. Requires for fetching Twittercards for link previews too. Changed earlier this year.