Frost-for-Facebook icon indicating copy to clipboard operation
Frost-for-Facebook copied to clipboard

Option to access Facebook over Tor hidden service

Open nickcalyx opened this issue 5 years ago • 10 comments

I'd love to see Frost have the ability to access Facebook over Tor using its "hidden service" address, facebookcorewwwi.onion ... similar to how F-Droid itself has the option of using Tor for its network access

It would do a lot to increase privacy, and for censorship circumvention - as it would prevent Facebook from getting the user's IP address, and would prevent the user's ISP ( or their government ) from knowing they are going on Facebook. It might even help users in countries where Facebook gets blocked to access the site during censor blackouts ( please see : https://en.wikipedia.org/wiki/Censorship_of_Facebook )

It would probably require that the user has Orbot installed

Would be happy to discuss further

nickcalyx avatar Feb 14 '20 19:02 nickcalyx

I'm not sure if that address will redirect to the mobile version, but if it doesn't, it won't be feasible. I also don't use Tor currently so it's an overhead I'm unlikely to support any time soon. If it's just a matter of changing the url, feel free to change it and test building it. If it works, I'll see if I can add options for it.

AllanWang avatar Feb 17 '20 05:02 AllanWang

When I go to facebookcorewwwi.onion in Tor browser for Android it does redirect to m.facebookcorewwwi.onion

nickcalyx avatar Feb 17 '20 15:02 nickcalyx

I'm also interested in this feature, or at least to have the possibility to set a proxy to use tor

nikonakoneko avatar Mar 30 '20 17:03 nikonakoneko

It should not be that difficult to replace facebook.com with facebookcorewwwi.onion: You just need to add an option to enable it in the settings. However, you'll need to either implement proxy settings (to use tor proxy, or proxy in general) or use Orbot API which might be difficult for you.

MuntashirAkon avatar May 01 '20 09:05 MuntashirAkon

I'm sure it is doable, but I don't think I'd have the resources to maintain it down the road, especially as I won't be using it. If it is as simple as we say, then someone can feel free to change the url constant and test it. Frost already has scripts with Travis CI, so you won't even need to build it yourself if you wish. I'm not familiar with any further setup, so someone else may want to look into that.

In the event I do add support directly in Frost, the integration may not be as trivial as we think. As the url is currently a constant throughout the code

AllanWang avatar May 01 '20 09:05 AllanWang

As the url is currently a constant throughout the code.

Are these constants only defined at

https://github.com/AllanWang/Frost-for-Facebook/blob/6f4f98ae11fc17c29f896ce5f38e28251fff570d/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbConst.kt#L23-L32

or some place else as well? If that's the case, a simple refactoring might work.

Also:

  • *.facebook.com -> *.facebookcorewwwi.onion
  • fbcdn.net -> fbcdn23dssr3jqnq.onion

MuntashirAkon avatar May 01 '20 12:05 MuntashirAkon

Also, there's should be an option for proxy. This could also help them where Facebook is actively monitored or, worse, blocked.

MuntashirAkon avatar May 01 '20 12:05 MuntashirAkon

Tor support would be great. Been using faceslim, because it is the only one that supports it. But no development there for a long time.

murkom avatar Nov 13 '20 10:11 murkom

Thank you for the initiative, @nickcalyx ! I would very much appreciate this feature as well and so would many others, I assume! Has anyone tried the "refactoring" that @MuntashirAkon suggested? And have you thought about supporting the required proxy option, @AllanWang ?

ongymens avatar Mar 17 '22 07:03 ongymens

supporting the required proxy option?

Just mentioning #1905 too, for not-tor-specific proxying.

travisfw avatar Jul 27 '23 14:07 travisfw