View | Details | Raw Unified | Return to bug 39906
Collapse All | Expand All

(-)a/debian/templates/apache-shared-opac-antibot.conf (-4 / +5 lines)
Lines 1-8 Link Here
1
RewriteEngine on
1
RewriteEngine on
2
2
3
#NOTE: To override this setting of ANTIBOT_DO, in the parent VirtualHost add the following: SetEnvIf Request_URI ^ ANTIBOT_OVERRIDE=true
3
# NOTE: To enable the antibot challenge for all instances, uncomment the next SetEnvIf line.
4
#You can then provide your own conditions for setting the ANTIBOT_DO environmental variable
4
# Or enable it per instance by adding the next SetEnvIf line [without comment] to the corresponding virtual host file in /etc/apache2/sites-enabled.
5
RewriteCond %{ENV:ANTIBOT_OVERRIDE} ^$
5
# SetEnvIf Request_URI ^ ANTIBOT_ENABLED=1
6
7
RewriteCond %{ENV:ANTIBOT_ENABLED} ^1|Y|Yes$
6
RewriteCond expr "%{REQUEST_URI} =~ m#^/cgi-bin/koha/(opac-detail.pl|opac-export.pl|opac-suggestions.pl|opac-search.pl|opac-authoritiesdetail.pl|opac-ISBDdetail.pl|opac-MARCdetail.pl|opac-shelves.pl)$#"
8
RewriteCond expr "%{REQUEST_URI} =~ m#^/cgi-bin/koha/(opac-detail.pl|opac-export.pl|opac-suggestions.pl|opac-search.pl|opac-authoritiesdetail.pl|opac-ISBDdetail.pl|opac-MARCdetail.pl|opac-shelves.pl)$#"
7
RewriteCond %{HTTP:Cookie} !(^|;\s*)CGISESSID= [NC]
9
RewriteCond %{HTTP:Cookie} !(^|;\s*)CGISESSID= [NC]
8
#NOTE: The KOHA_INIT is set by Javascript by the fast challenge webpage
10
#NOTE: The KOHA_INIT is set by Javascript by the fast challenge webpage
9
- 

Return to bug 39906