mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 20:25:51 +03:00
[GH-ISSUE #276] [FEATURE] Access website though proxy #189
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#189
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alkarkhi on GitHub (Apr 10, 2021).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/276
Describe the feature you'd like to see added
Sometimes websites block ip addresses especially if they get high traffic e.g Tor or VPN. Startpage (anonymous view) and Searx (mortyproxy) have a proxy option. I don't know if Whoogle supports this or not but I couldn't find it. So I would be grateful if something like this was introduced to Whoogle.
@alkarkhi commented on GitHub (Apr 10, 2021):
https://github.com/asciimoo/morty
@gripped commented on GitHub (Oct 28, 2021):
Just a proof of concept Ben
The following added to my Nginx conf
And proxying through Morty works (obviously I already have Morty setup as I use searx as well)
Searx also adds a hash to the url
https://searx.informationhouse.co.uk/morty/?mortyurl=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FBBC&mortyhash=23020c5f19b4c24ff46fb4ee78801efa7a19ebd9054cda0e2dd4977d7ebf6316with the help of a key in its setting file. I haven't even looked into the purpose of the hash but doubt it's important in my private instance case. Works without it.
The hash code is here
I made an attempt to do this properly adding new config option, new section in results.py etc. but have failed so far (but I don't think I'm that far off ?)
But I won't do any more unless it's some thing you'd want to implement ?
It was just curious if it would work, and be easy. Yes and yes.
@benbusby commented on GitHub (Nov 2, 2021):
Sorry @gripped, this seems to have gotten lost in my stream of notifications, I'm just now seeing your comment.
Yes, I'm definitely interested in getting this implemented, but am curious what you had in mind for determining if morty is available on a user's Whoogle instance. Are you thinking it would just be a configurable setting in the same vein as the privacy frontend settings (i.e. the
WHOOGLE_ALT_[MD|RD|IG|etc]vars)? If that's the case, I assume enabling morty for in-app result views would require that environment variable to be set?I guess my main priority is ensuring that this gets implemented as agnostic as possible (not being dependent on an external proxy). It should be easy enough to allow proxying directly through Whoogle by modifying the existing NoJS option a bit, but could also allow configuring an external proxy (like morty) as an add-on. So in my head, implementing this feature completely would mean:
Feel free to open a draft PR with your current progress if you want my input before it's ready, otherwise just keep me posted.
@gripped commented on GitHub (Nov 2, 2021):
No problem at all. I have Morty working for me with Whoogle. There's no rush.
In my ideal world I think Whoogle would offer:
Your comment from another issue:
#508
So I think we are thinking along the same lines ?
As for the configuration page I guess one option along the lines of 'Show proxy link'.
And then a three state radio button to select the type of proxying ?
I'll see what I can come up with. But don't hold your breath.
I do not consider myself a programmer in the least. I like playing around with it all though and occasionally I succeed.
If you decided to jump in and just do it I would not be in the least bit miffed. Probably more relieved.
@benbusby commented on GitHub (Nov 2, 2021):
Yep, sounds like we're on the same page. The only catch I think is that if the user doesn't have the external proxy URL configured, that the external proxy option is disabled somehow. There's similar behavior with the Tor config option when the user's machine doesn't have Tor running.
Well I'd still like to encourage you to give it a shot! I'll hold off on implementing anything on my end. If you end up opening a PR that still needs work, I'm happy to jump in at that point (if needed).
@gripped commented on GitHub (Nov 3, 2021):
Yeah I had thought of that but forgot to mention. Environment variable defined = Three choices . Not defined = 2 choices and one greyed out.
It's gonna be a longshot! ;)
I am going to try. Mainly by copying your code wherever possible.
@DUOLabs333 commented on GitHub (Jan 11, 2022):
Doesn't Whoogle already have proxy support (it should support whatever proxies
requestssupport)?@benbusby commented on GitHub (Jan 11, 2022):
@DUOLabs333 this is a bit different. In this case what's being asked for is to view result webpages through Whoogle itself. So a user would be given a "View Result in Proxy" option next to each result, and if clicked, the result page would be loaded as
https://whoogle-instance.com/result?page=example.com, whereexample.comis presented to the user through Whoogle itself.@gripped did you end up looking into this? No worries if not, just curious :)
@DUOLabs333 commented on GitHub (Jan 11, 2022):
@benbusby Oh, ok. Does the link have to be under the whoogle domain, or can the proxy be on some other domain?
@benbusby commented on GitHub (Jan 11, 2022):
I believe the desired effect is for the request to be proxied by the same whoogle instance that provided the results.
@gripped commented on GitHub (Jun 6, 2022):
@benbusby I did, but failed :) Decided to take a break and come back to it. Then life got in the way (I've been at version 0.6.0 until minutes ago.)
@gripped commented on GitHub (Jun 6, 2022):
@benbusby
I've hacked morty into my instance again. I still prefer how morty works. But I consider this a personal hack
Only sharing for the benefit of anyone else who might wish to the same. Which is probably a total of zero people?