Home › Forums › BulletProof Security Pro › 403 Forbidden Error Page during search query using apostrophe
- This topic has 4 replies, 2 voices, and was last updated 4 years, 2 months ago by
Living Miracles.
-
AuthorPosts
-
Living Miracles
ParticipantHi,
When I do a search query in the WordPress “Posts” area search bar for something that contains an apostrophe (or single quotation mark), like “What’s underneath emotions”, I get a BPS Pro 404 Error page. I’m guessing it has something to do with the “CUSTOM CODE BPSQSE BPS QUERY STRING EXPLOITS” code in my .htaccess file, but removing certain things from there, didn’t resolve the issue.
Could you tell me how to resolve this issue?
Thank you!
JuttaAITpro Admin
KeymasterThe single quote code character/apostrophe is 1 of the 5 most dangerous code characters. So obviously I would recommend that you do not whitelist/allow single quote code characters in searches on your website, but if you want to allow this then the information is below to allow/whitelist this. A question mark should not be blocked by anything in BPS. So maybe you Mod Security enabled. I believe Mod Security blocks single quote characters/apostrophes and may also block question marks. It is baffling to me that single quote characters are not automatically stripped out of searches. WP strips out dangerous code characters everywhere else.
Solution for allowing apostrophe’s/single quote code characters in search forms on the frontend of your website: http://forum.ait-pro.com/forums/topic/apostrophe-single-quote-code-character/#post-6939
Solution for allowing apostrophe’s/single quote code characters in search forms on the backend of your website: http://forum.ait-pro.com/forums/topic/search-string-403-error/#post-14372
Living Miracles
ParticipantOk, thank you so much! I appreciate that. I’ll just do my searches differently then. Obviously I can search for “underneath emotions” and that’ll bring up the right post for me as well 🙂
Thank you!
AITpro Admin
KeymasterWise choice. If it is only you that is affected by searches and not visitors to your website then there is really no reason to search for grammatically correct search terms. 😉
Living Miracles
ParticipantYes, it’s just in the backend where this occurs. If I do a search on the frontend that includes an apostrophe, there’s no issue at all 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.