https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42949 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|Adds an optional complexity |An optional response release notes|score response header that |header, |enables per-endpoint rate |`x-complexity-score`, |limiting in things like |weights each OPAC request |Cloudflare WAF Rate |by how expensive its page |Limiting Rules. Heavy |is. A reverse proxy or WAF, |endpoints (search results, |such as Cloudflare Rate |AJAX) get higher scores so |Limiting, can then throttle |they consume more of a |heavy pages harder than |client's rate limit budget. |light ones. The header is | |off by default. |The feature is disabled by | |default. To enable it, add |Default weights: |this to the <config> |opac-search.pl 25, |section of koha-conf.xml |opac-detail.pl 20, |and restart Plack: |opac-MARCdetail.pl 10, | |opac-main.pl 1. | | |<complexity_score_header>1< |**Configuration** |/complexity_score_header> |- `complexity_score_header` | |(default: off) - set to 1 |Then each OPAC path can be |to send the header. |configured by adding |- |something like: |`complexity_score_header_na | |me` (optional, default: | |x-complexity-score) - the |<complexity_score_weights> |name of the header. | |- |<opac-search.pl>30</opac-se |`complexity_score_weights` |arch.pl> |(optional) - replaces the | |weight of any listed OPAC |</complexity_score_weights> |script. Scripts not listed | |keep their default: | | | |```xml | |<complexity_score_weights> | | | |<opac-search.pl>30</opac-se | |arch.pl> | |</complexity_score_weights> | |``` | | | |**To enable** | |1. Add | |`<complexity_score_header>1 | |</complexity_score_header>` | |to the `<config>` section | |of koha-conf.xml. | |2. Restart Plack. -- You are receiving this mail because: You are watching all bug changes.