{"id":230,"date":"2013-07-03T20:19:00","date_gmt":"2013-07-03T20:19:00","guid":{"rendered":"http:\/\/124@jodohost.com\/\/blog\/"},"modified":"2013-07-03T20:19:00","modified_gmt":"2013-07-03T20:19:00","slug":"how-to-turn-off-register-globals-for-your-website-hosted-on-a-linux-server","status":"publish","type":"post","link":"http:\/\/www.jodohost.com\/blog\/index.php\/2013\/07\/03\/how-to-turn-off-register-globals-for-your-website-hosted-on-a-linux-server\/","title":{"rendered":"How to turn off Register globals for your website hosted on a Linux server"},"content":{"rendered":"<p>Many times, it is necessary to turn off\/disable Register globals for your site. You can turn off Register globals through the .htaccess file. So below are the steps to turn it off :- <\/p>\n<p>Step 1: Create a .htaccess file under your domain or on your local computer and then upload it under the domain.<br \/>Step 2: Use the php directive below to turn Register globals off :- <\/p>\n<p>php_flag register_globals off<\/p>\n<p>Step 3: Make sure that the file is saved as .htaccess not .htaccess.txt, because htaccess is itself the extension of the file.<\/p>\n<p>It&#8217;s done! To check if Register globals has been turned off or not, just create an empty xyz.php file anywhere on your web root under the domain and write the following line:<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <? php<br \/>\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0phpinfo();<br \/>\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0?><\/p>\n<p>Open this file in any web browser using http:\/\/domain\/xyz.php and check out the value for register_globals on the page.<\/p>\n<p> ]]><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many times, it is necessary to turn off\/disable Register globals for your site. You can turn off Register globals through the .htaccess file. So below are the steps to turn it off :- Step 1: Create a .htaccess file under your domain or on your local computer and then upload it under the domain.Step 2: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/230"}],"collection":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=230"}],"version-history":[{"count":0,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/230\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=230"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}