Giter VIP home page Giter VIP logo

filtron's Introduction



Privacy-respecting, hackable metasearch engine

Searx.space lists ready-to-use running instances.

A user, admin and developer handbook is available on the homepage.

SearXNG install SearXNG homepage SearXNG wiki AGPL License Issues commits weblate SearXNG logo


Contact

Ask questions or just chat about SearXNG on

IRC
#searxng on libera.chat which is bridged to Matrix.
Matrix
#searxng:matrix.org

Setup

Translations

Help translate SearXNG at Weblate

Contributing

Are you a developer? Have a look at our development quickstart guide, it's very easy to contribute. Additionally we have a developer documentation.

Codespaces

You can contribute from your browser using GitHub Codespaces:

  • Fork the repository
  • Click on the <> Code green button
  • Click on the Codespaces tab instead of Local
  • Click on Create codespace on master
  • VSCode is going to start in the browser
  • Wait for git pull && make install to appear and then disappear
  • You have 120 hours per month (see also your list of existing Codespaces)
  • You can start SearXNG using make run in the terminal or by pressing Ctrl+Shift+B

filtron's People

Contributors

albonycal avatar asciimoo avatar dalf avatar dependabot[bot] avatar kvch avatar return42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

filtron's Issues

[question] filtron request header size

I have a problem where if I search a string that is longer than 120 character it gets rejected by filtron.

Example:
search?q=ayIWuCsmIV0OiwMvQ7h5bTuMP2mxzhfVZJX7ulmeyIAYfOMeYUwa0J4VNU3rDwZBncYwlPYYg7dIaFq8pPQnESYuZsTbe4L4biuqHqJGXnwO896V2MObqeeZ works correctly.
search?q=ayIWuCsmIV0OiwMvQ7h5bTuMP2mxzhfVZJX7ulmeyIAYfOMeYUwa0J4VNU3rDwZBncYwlPYYg7dIaFq8pPQnESYuZsTbe4L4biuqHqJGXnwO896V2MObqeeZa gets rejected with error Too big request header

I can't reproduce this on my test server with identical filtron and SearXNG setup.
There is also nothing getting logged. When I inspect filtron with debugging enabled I can see every other request but as soon as this string length limit is reached the request won't even be logged.

What should I do now?

Python prototype + Redis

A prototype to replace filtron with Python code & redis:
https://gist.github.com/dalf/705ee88381a1b3254b5dce3052ea20e5

  • redis stores only HMAC of the informations:
    • aggregation key is HMAC(secret_key, key1 || key2 || key3...)
    • so only the Python code has access to the data, Redis never knows the real data.
  • the cost is less than one 1ms per URL on my laptop, YMMV.
  • the agregation (IP and UserAgent) really works as intended (filtron actually does two different aggregations).

rules.json: Make it part of the image

Right now searxng-docker uses dalf/filtron:latest as the image for filtron. Since we have filtron in the repo now we should setup github actions to bould images and push them to the searxng org.

Furthermore I think we should include the default rules.json from searxng-docker since in most cases people are just mounting that file inside their filtron container anyway. This way the file stays up to date, the container does not require mounting (and before that creating) a file and easier config for new maintainers. If anyway wants to change the rules.json they can just mount a custom one into the container at the location of the default one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.