This patch adds a fast simple bot challenge via Apache. To test: 0. Apply the patch 1. sudo cp debian/templates/apache-shared-opac-antibot.conf /etc/koha/. 2. sudo cp debian/templates/apache-shared-opac-plack.conf /etc/koha/. 3. curl http://localhost:8080/cgi-bin/koha/opac-search.pl 4. Note an instant response with a very simple HTML response 5. Open an incognito browser and go to http://localhost:8080/cgi-bin/koha/opac-search.pl 6. Note a very brief loading animation before the OPAC search page appearing 7. Do a search 8. Note no more loading animation appears 9. Close the incognito browser 10. Open an incognito browser and go to http://localhost:8080/cgi-bin/koha/opac-main.pl 11. Do a search via the "Library catalog" search bar 12. Note no loading animation appears Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Cornelius Hertfelder <cornelius.hertfelder@bsz-bw.de> Signed-off-by: Magnus Enger <magnus@libriotech.no> We have tested this in production on at least three live sites for several weeks, and it has worked as expected. We have not noticed any negative side effects. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com> |
||
|---|---|---|
| .. | ||
| docs | ||
| scripts | ||
| source | ||
| templates | ||
| README.build | ||
| bd-to-depends | ||
| build-git-snapshot | ||
| changelog | ||
| clean | ||
| compat | ||
| control | ||
| control.in | ||
| copyright | ||
| koha-common.README.Debian | ||
| koha-common.bash-completion | ||
| koha-common.config | ||
| koha-common.cron.d | ||
| koha-common.cron.daily | ||
| koha-common.cron.hourly | ||
| koha-common.cron.monthly | ||
| koha-common.default | ||
| koha-common.dirs | ||
| koha-common.docs | ||
| koha-common.init | ||
| koha-common.install | ||
| koha-common.links | ||
| koha-common.logrotate | ||
| koha-common.postinst | ||
| koha-common.preinst | ||
| koha-common.service | ||
| koha-common.templates | ||
| koha-core.bash-completion | ||
| koha-core.config | ||
| koha-core.default | ||
| koha-core.dirs | ||
| koha-core.docs | ||
| koha-core.init | ||
| koha-core.install | ||
| koha-core.links | ||
| koha-core.logrotate | ||
| koha-core.postinst | ||
| koha-core.preinst | ||
| koha-core.templates | ||
| koha-full.postinst | ||
| koha-post-install-setup | ||
| koha.README.Debian | ||
| koha.apache-ports | ||
| koha.config | ||
| koha.dirs | ||
| koha.install | ||
| koha.postinst | ||
| koha.postrm | ||
| koha.prerm | ||
| list-deps | ||
| rules | ||
| unavailable.html | ||
| update-control | ||
README.build
In order to build .deb packages, following debian packages need to be present (installed): devscripts pbuilder dh-make fakeroot As root (or sudo) execute: pbuilder create Executing build-git-snapshot without any arguments will leave package and the rest in some pbuilder dir, eg. /var/cache/pbuilder/result It is highly recommended that --buildresult option is used.