Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repubblica.it not working anymore #14

Closed
Heliosmaster opened this issue Dec 3, 2021 · 3 comments
Closed

Repubblica.it not working anymore #14

Heliosmaster opened this issue Dec 3, 2021 · 3 comments

Comments

@Heliosmaster
Copy link
Contributor

Looks like the site has removed the old amp pages, so freeRep doesn't work anymore with it.

@gall0ws
Copy link
Owner

gall0ws commented Dec 4, 2021

Thanks for the heads up!

Nevertheless, I found that it's still possible to bypass it:

$ check () {
     grep -q nomenklatura || {
 echo paywall
 return
     }
     echo ok
 }
$ url='https://www.repubblica.it/cultura/2021/12/03/news/renzo_piano_nel_mio_nuovo_museo_c_e_tutta_la_luce_di_mosca_-328839338/'
$ curl -s $url | check
paywall
$
$ curl -s $url -H 'Referer: https://translate.google.com/' | check
ok
$ curl -s $url -H 'Referer: https://m.google.com' | check
ok
$ curl -s $url -H 'Referer: https://www.google.com/' | check
ok
$ curl -s $url -H 'Referer: https://www.twitter.com' | check
paywall
$ curl -s $url -H 'Referer: https://www.bing.com' | check
paywall

So, as long as you came from google it's okay for them 🤷

Let's see if we can do that inside freeRep.

giuliohome added a commit to giuliohome/cloudflare-worker that referenced this issue Dec 8, 2021
So, as long as you came from google it's okay for them 🤷
@alba-77
Copy link

alba-77 commented Dec 9, 2021

Grazie mille ma non ho capito questo codice dove andrebbe copiato. All'interno dello script?
Però vedo che c'è un url assoluto... Non capisco.

@gall0ws
Copy link
Owner

gall0ws commented Dec 11, 2021

Released v1.6 that implements the referer trick for repubblica.it.

@gall0ws gall0ws closed this as completed Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants