禁止您无权访问特殊字符 [英] Forbidden You don't have permission to access on searching a special character

查看:125
本文介绍了禁止您无权访问特殊字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在支持一个Java应用程序,该应用程序具有一个与关键字匹配的搜索栏,并从缓存中获取结果.

I am supporting a java application which has a search bar which matches the keywords and gets the results from the cache.

该应用程序在Tomcat中运行,并且也具有Apache Web服务器.

The application runs in Tomcat and has a Apache web server too.

搜索 aaa'时出现问题,特殊字符 ' 导致了问题,我进入

There is an issue while searching aaa' the special character ' is causing the problem and i get to

禁止 您无权访问/xx/xx/xxxx.jsp

Forbidden You don't have permission to access /xx/xx/xxxx.jsp

由于没有Web服务器,因此在本地设置中搜索很好.如我所见,一些帖子暗示该问题可能是由Web服务器配置引起的.

The search is fine in local setup with the abscence of Web Server. As i saw some posts suggesting the issue could be caused by Web server config.

有什么可能性?

我们非常感谢您的帮助.

Your help is highly appreciated.

谢谢, 纳加拉惹JB

Thanks, Nagaraja JB

推荐答案

问题不是问题,它是apache Web服务器或FireWall规则的安全性约束,可防止使用%27进行跨站点限制或sql注入(单个引用). 我使用POST方法而不是GET 方法发送请求.这是我的情况的解决方案.

The issue was not an issue it is a secutity constraint by the apache web server or FireWall rule to protect from cross site sctipting or sql injection using %27 (single quote). I used POST method instead of using GET method to send request. That is the solution for my case.

这篇关于禁止您无权访问特殊字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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