下面的URL是内容欺骗的一个例子。当我点击以下URL时,我需要显示我的404页:
目前,我看到Apache的默认错误页面如下所示:
在此服务器上找不到所请求的网址/请访问此网页以修复此问题(http://malicious.site.evil.com/ )。同样,在此服务器上找不到该页。
我已经尝试过在RewriteCond中添加.htaccess。我也尝试过添加以下内容
AllowEncodedSlashes NoDecode
在httpd.conf文件的末尾,如this中提到的。
但似乎什么都没起作用。
有人能帮忙吗?
更新
下面是.htaccess的片段
ErrorDocument 404 /404.html
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^ /404.html [L,R=404]发布于 2019-11-22 09:21:23
修复是“简单的”,但需要显式地应用于每个易受攻击的vhost。
VirtualHost *:80
[...]
AllowEncodedSlashes nodecode
/VirtualHost>
VirtualHost *:433
[...]
AllowEncodedSlashes nodecode
/VirtualHost不要忘记虚拟主机开头的<
https://stackoverflow.com/questions/55159723
复制相似问题