asuwebplatforms/webspark-module-webspark_cas

针对ASU场景的CAS重写Webspark模块。

1.0.4 2022-12-15 17:19 UTC

This package is auto-updated.

Last update: 2024-10-01 00:14:49 UTC


README

WebSpark CAS模块包含允许Elastic Crawler绕过CAS重定向并成功处理网页的功能。

设置

以下设置应添加到settings.php文件中。如果不存在此类设置,则将使用默认设置。

$settings['webspark_cas_elastic_crawler_regex'] = '/^Elastic-Crawler .*$/';

此设置描述了用于根据HTTP头中的User-Agent值确定Elastic Crawler请求的正则表达式。