hnhx / librex

Framework and javascript free privacy respecting meta search engine
GNU Affero General Public License v3.0
785 stars 92 forks source link

Automatic redirection #251

Open Ahwxorg opened 1 year ago

Ahwxorg commented 1 year ago

What? This issue is about automatic redirection, which was added in commit 7559bc8101fd09a6d946c5b87f0be5ebaccf4031, and edited in commit e03b930386caff3b8cc0de4c059a8666a15a2741.

The issue The issue is that (I am assuming most people) people (like me) do not want to automatically redirect their queries to another instance for whatever reasons.

Possible solution A few solutions would be:

I also think it's also very important to make a list of "trusted instances", which the users are able to set by themselves, so that LibreX only redirects to those instances.

Extra idea

I personally think it should also be a setting you can change in the config.php since I like to clear cookies, but I don't think most people would agree. You could also make a default in the config.php which users can toggle in the settings with a default of enabled=false.

Let me know if any of these ideas are a good idea, and I would be willing to try to implement them.

gospodin55 commented 1 year ago

I made this and was extremely surprised when it was just merged. I expected to receive suggestions by hnhx about how it should be implemented differently. I think it should be a clickable text suggesting to redirect to other instance, maybe not random but from config.php or cookies. Maybe it should be integrated with something like libredirect

Ahwxorg commented 1 year ago

Yeah, that's what I said. @hnhx could this be implemented the correct way?

Ahwxorg commented 1 year ago

I'm not updating my instance untill its patched correctly, as this is a huge privacy concern for me.

torunar commented 1 year ago

It also breaks API: when search results are queried through API and Google starts rate limiting, user is redirected to search on the other instance instead of API.

Ahwxorg commented 1 year ago

@hnhx bumping this again

gospodin55 commented 1 year ago

Maybe someone should fork librex, waiting for hnhx is too long

Ahwxorg commented 1 year ago

I will.

codedipper commented 1 year ago

https://github.com/Ahwxorg/LibreY <3