在Web服务器日志中包含'A = 0或'0 = A的奇怪URL [英] Strange URL containing 'A=0 or '0=A in web server logs

查看:152
本文介绍了在Web服务器日志中包含'A = 0或'0 = A的奇怪URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在上周末,我的一些网站记录错误,这意味着我们的网址使用错误:

During the last weekend some of my sites logged errors implying wrong usage of our URLs:

...news.php?lang=EN&id=23'A=0

...news.php?lang=EN&id=23'0=A

而不是

...news.php?lang=EN&id=23

我发现只有一个页面提到这个( https://forums.adobe.com/thread/1973913 ),他们推测附加查询字符串来自GoogleBot或编码错误。

I found only one page originally which mentioned this (https://forums.adobe.com/thread/1973913) where they speculated that the additional query string comes from GoogleBot or an encoding error.

我最近更改了我的网站使用PDO而不是 mysql _ * 。也许这种变化造成了错误?任何提示都是有用的。

I recently changed my sites to use PDO instead of mysql_*. Maybe this change caused the errors? Any hints would be useful.

此外,所有请求都来自下面显示的相同的用户代理。 p>

Additionally, all of the requests come from the same user-agent shown below.

Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-PT; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)

这导致我找到以下主题:
pt-BR

URL中的奇怪参数 - 他们在尝试什么?

This lead me to find the following threads: pt-BR and Strange parameter in URL - what are they trying?

推荐答案

由于这是一个非常旧的FireFox版本,我将其阻止在我的htaccess文件中 -

since this is a very old version of FireFox, I blocked it in my htaccess file -

RewriteCond %{HTTP_USER_AGENT} Firefox/3\.5\.2 [NC]
RewriteRule .* err404.php  [R,L]

这篇关于在Web服务器日志中包含'A = 0或'0 = A的奇怪URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆