gpt4 book ai didi

error-handling - 404 劫持

转载 作者:行者123 更新时间:2023-12-04 13:09:13 28 4
gpt4 key购买 nike

某些 malware such as AVG劫持 404 页面,以便在浏览器中显示一个布满自己广告的页面。
我发现的唯一解决方法是在我的 web 应用程序中放弃自定义错误页面的 404 http 状态代码。

有没有其他解决办法?

编辑:

任何人都知道任何其他工具栏/程序也会劫持 404 页面而不检查它们是否是通用错误页面?

有没有办法从查询字符串或其他方式检测 AVG 的存在? (我认为不是)

我创建了一个 petition to AVG在这一点上。

最佳答案

这不是你的错,当然也不是你的责任。保留 HTTP 状态代码,它们很有用。如果您的某些用户决定安装处理 404 状态代码的浏览器插件,请不要尝试解决它。

There is a Google Webmaster Central Blog post about this topic :

[...] are confusing for users, and furthermore search engines may spend much of their time crawling and indexing non-existent, often duplicative URLs on your site. This can negatively impact your site's crawl coverage - because of the time Googlebot spends on non-existent pages, your unique URLs may not be discovered as quickly or visited as frequently.

关于error-handling - 404 劫持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/301750/

28 4 0
文章推荐: .net - C#NetCDF库
文章推荐: qt - QML封装不新建文件
文章推荐: reporting-services - SSRS 性能
文章推荐: 铁红集成开发环境
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com