Apache 在Magento中阻止rss

Apache 在Magento中阻止rss,apache,.htaccess,magento-1.9,Apache,.htaccess,Magento 1.9,我需要阻止此URL:https://example.com/rss/catalog/notifystock/在我的网站上 我编写了以下代码来阻止: RewriteRule ^(index.php/?)?rss/ - [L,R=403] 但它会阻止以下URL:https://example.com/index.php/rss/catalog/notifystock/ 它尚未阻止此URL:https://example.com/rss/catalog/notifystock/ 任何人都可以尝试使用

我需要阻止此URL:
https://example.com/rss/catalog/notifystock/
在我的网站上

我编写了以下代码来阻止:

RewriteRule ^(index.php/?)?rss/ - [L,R=403]
但它会阻止以下URL:
https://example.com/index.php/rss/catalog/notifystock/

它尚未阻止此URL:
https://example.com/rss/catalog/notifystock/


任何人都可以尝试使用此规则来代替:

RewriteRule rss - [F]
它应该做的是阻止对URL中包含rss的任何页面的访问。您还可以使用:

<FilesMatch "rss$">
    order allow,deny
    deny from all
</FilesMatch>

命令允许,拒绝
全盘否定
因此,如果一个文件与rss匹配,那么它将拒绝所有人的访问。但是,如果您使用的是Apache 2.4,那么它将是:

<FilesMatch "rss$">
    Require all denied
</FilesMatch>

要求全部拒绝