在 dspace 中限制访问页面反馈?

restricting access page feedback in dspace?

我使用的是DSpace 5.5版本

和界面 XMLUI

伙计们很抱歉这个菜鸟问题,众所周知,IT 世界中的攻击和垃圾邮件很常见,您可以将 dspace 的访问页面“/反馈”限制为仅经过身份验证的用户。 DSpace 本身有某种保护措施可以抵御可能导致系统崩溃的攻击?

要将 /feedback 页面限制为经过身份验证的用户,您需要编辑 /aspects/ArtifactBrowser/sitemap.xmap。将 AuthenticatedSelector 添加到 "feedback" 匹配器:

<map:match pattern="feedback">
    <map:select type="AuthenticatedSelector">
        <map:when test="eperson">
            <map:act type="SendFeedbackAction">
                <map:transform type="FeedbackForm">
                    <map:parameter name="comments" value="{comments}"/>
                    <map:parameter name="email" value="{email}"/>
                    <map:parameter name="page" value="{page}"/>
                </map:transform>
                <map:serialize type="xml"/>
            </map:act>
            <map:transform type="FeedbackSent"/>
        </map:when>
        <map:otherwise>
            <map:act type="StartAuthentication"/>
        </map:otherwise>
    </map:select>
    <map:serialize type="xml"/>
</map:match>

otherwise 块会将未通过身份验证的用户重定向到登录页面。