简体   繁体   English

PHP GET在搜索过程中发送403错误

[英]PHP GET sending 403 Error during search

I have a search bar for my website that keeps sending weird error messages when I type certain things into the search. 我的网站上有一个搜索栏,当我在搜索中输入某些内容时,它会不断发送奇怪的错误消息。 Here is the page. 这是页面。 http://www.pearlsquirrel.com/searchmusic.php . http://www.pearlsquirrel.com/searchmusic.php If I were to type in this "<><>" it sends me a message saying 如果我键入此“ <> <>”,则会向我发送一条消息,提示

Forbidden 禁止的

You don't have permission to access /searchmusic.php on this server. 您无权访问此服务器上的/searchmusic.php。

I have tried to contact my hosting provider but they are of no help. 我试图与我的托管服务提供商联系,但他们没有帮助。 I htink that this might be a problem with apache, but I do not know for sure. 我认为这可能是Apache的问题,但我不确定。 If anyone knows how to fix this error, any help would greatly be appreciated. 如果有人知道如何解决此错误,将不胜感激。

HTTP 403 errors may be thrown by security modules if they identify strange requests coming down the Apache pipeline. 如果安全模块识别出来自Apache管道的奇怪请求,则可能引发HTTP 403错误。 This is especially true if you are using a module like Mod Security. 如果您正在使用Mod Security之类的模块,则尤其如此。

In your case, sending a request with <><> may seem suspicious to the server, as it may interpret it as intending to find a vulnerability (a la SQL injection or what have you). 在您的情况下,使用<><>发送请求对服务器似乎是可疑的,因为它可能会将其解释为打算发现漏洞(例如SQL注入或您所拥有的)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM