{"id":489,"date":"2023-06-28T07:49:35","date_gmt":"2023-06-28T07:49:35","guid":{"rendered":"http:\/\/basicwebsitesolutions.com\/blog\/?p=489"},"modified":"2023-06-28T07:49:37","modified_gmt":"2023-06-28T07:49:37","slug":"not-acceptable-an-appropriate-representation-of-the-requested-resource-could-not-be-found-on-this-server-this-error-was-generated-by-mod_security-solved","status":"publish","type":"post","link":"https:\/\/basicwebsitesolutions.com\/blog\/2023\/06\/28\/not-acceptable-an-appropriate-representation-of-the-requested-resource-could-not-be-found-on-this-server-this-error-was-generated-by-mod_security-solved\/","title":{"rendered":"Not Acceptable! An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security [SOLVED]"},"content":{"rendered":"\n<p>Working on programming for so many years, it amazes me that i have really much to learn. This recent issue cropped up out of nowhere.<\/p>\n\n\n\n<p>I decided to disable mod security , which is a bad idea honestly. But true enough, i found the culprit. It seems when you pass a get parameter with special characters, our websites seem to be on high alert against hack attack<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;IfModule mod_security.c>\r\n  SecFilterEngine Off\r\n  SecFilterScanPOST Off\r\n&lt;\/IfModule><\/code><\/pre>\n\n\n\n<p>What i was passing is the name of a client through get command. Yeah i know . It came out as     link.php?name=M&amp;M <\/p>\n\n\n\n<p>I changed then parameter to a session id i had given before and it solved the issue. sigh. another lesson learned.<\/p>\n\n\n\n<p>Coffee Cup<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not Acceptable! An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security [SOLVED]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,1,11],"tags":[311,312,254,310,42],"class_list":["post-489","post","type-post","status-publish","format-standard","hentry","category-day-to-day-life","category-life-as-a-programmer","category-php-and-mysql","tag-an-appropriate-representation","tag-mod_security","tag-mysql","tag-not-acceptable","tag-php"],"_links":{"self":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=489"}],"version-history":[{"count":1,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/489\/revisions"}],"predecessor-version":[{"id":490,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/489\/revisions\/490"}],"wp:attachment":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}