<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://help.x-cart.com/index.php?action=history&amp;feed=atom&amp;title=X-Cart%3AProtected_Mode</id>
	<title>X-Cart:Protected Mode - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://help.x-cart.com/index.php?action=history&amp;feed=atom&amp;title=X-Cart%3AProtected_Mode"/>
	<link rel="alternate" type="text/html" href="https://help.x-cart.com/index.php?title=X-Cart:Protected_Mode&amp;action=history"/>
	<updated>2026-05-08T04:33:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.5</generator>
	<entry>
		<id>https://help.x-cart.com/index.php?title=X-Cart:Protected_Mode&amp;diff=14929&amp;oldid=prev</id>
		<title>Aim: Config.php is added</title>
		<link rel="alternate" type="text/html" href="https://help.x-cart.com/index.php?title=X-Cart:Protected_Mode&amp;diff=14929&amp;oldid=prev"/>
		<updated>2016-09-20T08:36:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/X-Cart:Config.php#Enabling_Protected_mode_for_security_sensitive_operations_performed_via_the_store.27s_back_end&quot; title=&quot;X-Cart:Config.php&quot;&gt;Config.php&lt;/a&gt; is added&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 08:36, 20 September 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;X-Cart versions 4.5.5 and later allow you to enable the so-called Protected mode for the store's back end. Protected mode provides protection against unauthorized access to security sensitive operations performed via the store's back end and thus allows you to minimize the risk of a malicious script being uploaded to your store's site or your database getting compromised in case an intruder manages to gain access to the store's back end.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;X-Cart versions 4.5.5 and later allow you to enable the so-called Protected mode for the store's back end. Protected mode provides protection against unauthorized access to security sensitive operations performed via the store's back end and thus allows you to minimize the risk of a malicious script being uploaded to your store's site or your database getting compromised in case an intruder manages to gain access to the store's back end.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Protected mode can be switched on and off by editing the values of the constants '''PROTECT_DB_AND_PATCHES''' and '''PROTECT_ESD_AND_TEMPLATES''' in X-Cart's main configuration file &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;u&amp;gt;&lt;/del&gt;config.php&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/u&amp;gt;&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Protected mode can be switched on and off by editing the values of the constants '''PROTECT_DB_AND_PATCHES''' and '''PROTECT_ESD_AND_TEMPLATES''' in X-Cart's main configuration file &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[X-Cart:Config.php#Enabling_Protected_mode_for_security_sensitive_operations_performed_via_the_store.27s_back_end|&lt;/ins&gt;config.php&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''PROTECT_DB_AND_PATCHES''' applies to SQL/security and upgrade/patch operations including the following:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''PROTECT_DB_AND_PATCHES''' applies to SQL/security and upgrade/patch operations including the following:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Aim</name></author>
		
	</entry>
	<entry>
		<id>https://help.x-cart.com/index.php?title=X-Cart:Protected_Mode&amp;diff=14928&amp;oldid=prev</id>
		<title>Aim: #Enabling_Protected_mode_for_security_sensitive_operations_performed_via_the_store.27s_back_end is added</title>
		<link rel="alternate" type="text/html" href="https://help.x-cart.com/index.php?title=X-Cart:Protected_Mode&amp;diff=14928&amp;oldid=prev"/>
		<updated>2016-09-20T08:34:44Z</updated>

		<summary type="html">&lt;p&gt;#Enabling_Protected_mode_for_security_sensitive_operations_performed_via_the_store.27s_back_end is added&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 08:34, 20 September 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l27&quot; &gt;Line 27:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 27:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See also==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See also==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[X-Cart:Config.php|Config.php]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[X-Cart:Config.php&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;#Enabling_Protected_mode_for_security_sensitive_operations_performed_via_the_store.27s_back_end&lt;/ins&gt;|Config.php]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[X-Cart:User_Access_Control|User Access Control]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[X-Cart:User_Access_Control|User Access Control]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[X-Cart:Security_Profiles|Security Profiles]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[X-Cart:Security_Profiles|Security Profiles]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Aim</name></author>
		
	</entry>
	<entry>
		<id>https://help.x-cart.com/index.php?title=X-Cart:Protected_Mode&amp;diff=10693&amp;oldid=prev</id>
		<title>Dohtur: /* See also */</title>
		<link rel="alternate" type="text/html" href="https://help.x-cart.com/index.php?title=X-Cart:Protected_Mode&amp;diff=10693&amp;oldid=prev"/>
		<updated>2013-03-26T09:54:32Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;See also&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 09:54, 26 March 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot; &gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[X-Cart:User_Access_Control|User Access Control]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[X-Cart:User_Access_Control|User Access Control]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[X-Cart:Security_Profiles|Security Profiles]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[X-Cart:Security_Profiles|Security Profiles]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[X-Cart:Setting_up_file_permissions|Setting up file permissions]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:X-Cart user manual]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:X-Cart user manual]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dohtur</name></author>
		
	</entry>
	<entry>
		<id>https://help.x-cart.com/index.php?title=X-Cart:Protected_Mode&amp;diff=10691&amp;oldid=prev</id>
		<title>Dohtur at 07:36, 26 March 2013</title>
		<link rel="alternate" type="text/html" href="https://help.x-cart.com/index.php?title=X-Cart:Protected_Mode&amp;diff=10691&amp;oldid=prev"/>
		<updated>2013-03-26T07:36:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:36, 26 March 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot; &gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''''file'''' and ''''ip'''' are values that enable Protected mode. The difference between the two is the protection method provided:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''''file'''' and ''''ip'''' are values that enable Protected mode. The difference between the two is the protection method provided:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:* 'file'-based protection method: This method provides the highest level of security. With this method, the user is not allowed to make any changes on the protected pages unless a file named &amp;lt;u&amp;gt;XC_UNLOCK&amp;lt;/u&amp;gt; has been created in the directory &amp;lt;u&amp;gt;var/tmp&amp;lt;/u&amp;gt;. It is essential that X-Cart software be able to delete this file, which means you must set write permissions accordingly - both for the directory &amp;lt;u&amp;gt;var/tmp&amp;lt;/u&amp;gt; and the file &amp;lt;u&amp;gt;XC_UNLOCK&amp;lt;/u&amp;gt;. If X-Cart does not have the permissions to delete the file, the store continues working in Protected mode. The file &amp;lt;u&amp;gt;XC_UNLOCK&amp;lt;/u&amp;gt; is removed automatically after six hours.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:* 'file'-based protection method: This method provides the highest level of security. With this method, the user is not allowed to make any changes on the protected pages unless a file named &amp;lt;u&amp;gt;XC_UNLOCK&amp;lt;/u&amp;gt; has been created in the directory &amp;lt;u&amp;gt;var/tmp&amp;lt;/u&amp;gt;. It is essential that X-Cart software be able to delete this file, which means you must set write permissions accordingly - both for the directory &amp;lt;u&amp;gt;var/tmp&amp;lt;/u&amp;gt; and the file &amp;lt;u&amp;gt;XC_UNLOCK&amp;lt;/u&amp;gt;. If X-Cart does not have the permissions to delete the file, the store continues working in Protected mode. The file &amp;lt;u&amp;gt;XC_UNLOCK&amp;lt;/u&amp;gt; is removed automatically after six hours.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:* 'ip'-based protection method: With this method, users are not allowed to make changes on the protected pages unless they are using an 'allowed' IP address. To define, whether or not an IP address is 'allowed', X-Cart uses the same base of IP addresses as the [[X-Cart:User_Access_Control|User access control]] functionality. This means that if you are going to use Protected mode based on the 'ip'-based protection method, you should make sure your store's list of allowed IP addresses contains the IP addresses from which you allow security sensitive admin operations.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:* &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;div id=&amp;quot;IPBasedProtectionMethod&amp;quot;&amp;gt; &amp;lt;/div&amp;gt;&lt;/ins&gt;'ip'-based protection method: With this method, users are not allowed to make changes on the protected pages unless they are using an 'allowed' IP address. To define, whether or not an IP address is 'allowed', X-Cart uses the same base of IP addresses as the [[X-Cart:User_Access_Control|User access control]] functionality. This means that if you are going to use Protected mode based on the 'ip'-based protection method, you should make sure your store's list of allowed IP addresses contains the IP addresses from which you allow security sensitive admin operations.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note that the values of the constants '''PROTECT_DB_AND_PATCHES''' and '''PROTECT_ESD_AND_TEMPLATES''' can be adjusted independently of one another to give you more flexibility; for instance, you can use 'file'-based protection method for SQL/security and upgrade/patch operations and 'ip'-based protection method for file uploads and template editing.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note that the values of the constants '''PROTECT_DB_AND_PATCHES''' and '''PROTECT_ESD_AND_TEMPLATES''' can be adjusted independently of one another to give you more flexibility; for instance, you can use 'file'-based protection method for SQL/security and upgrade/patch operations and 'ip'-based protection method for file uploads and template editing.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dohtur</name></author>
		
	</entry>
	<entry>
		<id>https://help.x-cart.com/index.php?title=X-Cart:Protected_Mode&amp;diff=10664&amp;oldid=prev</id>
		<title>Dohtur: Created page with 'X-Cart versions 4.5.5 and later allow you to enable the so-called Protected mode for the store's back end. Protected mode provides protection against unauthorized access to secur…'</title>
		<link rel="alternate" type="text/html" href="https://help.x-cart.com/index.php?title=X-Cart:Protected_Mode&amp;diff=10664&amp;oldid=prev"/>
		<updated>2013-03-25T16:27:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;X-Cart versions 4.5.5 and later allow you to enable the so-called Protected mode for the store&amp;#039;s back end. Protected mode provides protection against unauthorized access to secur…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;X-Cart versions 4.5.5 and later allow you to enable the so-called Protected mode for the store's back end. Protected mode provides protection against unauthorized access to security sensitive operations performed via the store's back end and thus allows you to minimize the risk of a malicious script being uploaded to your store's site or your database getting compromised in case an intruder manages to gain access to the store's back end.&lt;br /&gt;
&lt;br /&gt;
Protected mode can be switched on and off by editing the values of the constants '''PROTECT_DB_AND_PATCHES''' and '''PROTECT_ESD_AND_TEMPLATES''' in X-Cart's main configuration file &amp;lt;u&amp;gt;config.php&amp;lt;/u&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''PROTECT_DB_AND_PATCHES''' applies to SQL/security and upgrade/patch operations including the following:&lt;br /&gt;
:* admin/db_backup.php - operations of creating a backup of your store's database and restoring the database from backup via the 'Database Backup/Restore' page in Admin area;&lt;br /&gt;
:* CHANGE_SECURITY_OPTIONS - changing any settings on the General settings/Security options page (Settings-&amp;gt;General settings-&amp;gt;Security) in Admin area;&lt;br /&gt;
:* PATCH_FILES, PATCH_SQL - Apply Patch and Apply SQL patch operations via the Patch/Upgrade center page (Tools-&amp;gt;Patch/Upgrade) in Admin area;&lt;br /&gt;
:* UPGRADE - Upgrade operations via the Patch/Upgrade center page (Tools-&amp;gt;Patch/Upgrade) in Admin area;&lt;br /&gt;
:* ADD_ALLOWED_ADMIN_IP - adding allowed IP addresses via the 'Allowed IP addresses' section on the User access control page (Tools menu -&amp;gt; Maintenance -&amp;gt; &amp;quot;See also&amp;quot; tab (right-side menu) -&amp;gt; User access control) in Admin area.&lt;br /&gt;
&lt;br /&gt;
'''PROTECT_ESD_AND_TEMPLATES''' applies to file operations and template editing:&lt;br /&gt;
:* Edit templates - any operations via the Browse templates section in Admin and (X-Cart PLATINUM) Provider area;&lt;br /&gt;
:* FILE_OPERATIONS - any operations via the Browse files section in Admin and (X-Cart PLATINUM) Provider area (includes upload of files for ESD products).&lt;br /&gt;
&lt;br /&gt;
The possible values for the constants '''PROTECT_DB_AND_PATCHES''' and '''PROTECT_ESD_AND_TEMPLATES''' are ''''ip'''', ''''file'''' and ''''FALSE''''.&lt;br /&gt;
&lt;br /&gt;
''''FALSE'''' corresponds to disabled Protected mode. When this value is used, security sensitive operations can be performed by anyone with access to the store's back end. Using this value is strongly discouraged.&lt;br /&gt;
&lt;br /&gt;
''''file'''' and ''''ip'''' are values that enable Protected mode. The difference between the two is the protection method provided:&lt;br /&gt;
:* 'file'-based protection method: This method provides the highest level of security. With this method, the user is not allowed to make any changes on the protected pages unless a file named &amp;lt;u&amp;gt;XC_UNLOCK&amp;lt;/u&amp;gt; has been created in the directory &amp;lt;u&amp;gt;var/tmp&amp;lt;/u&amp;gt;. It is essential that X-Cart software be able to delete this file, which means you must set write permissions accordingly - both for the directory &amp;lt;u&amp;gt;var/tmp&amp;lt;/u&amp;gt; and the file &amp;lt;u&amp;gt;XC_UNLOCK&amp;lt;/u&amp;gt;. If X-Cart does not have the permissions to delete the file, the store continues working in Protected mode. The file &amp;lt;u&amp;gt;XC_UNLOCK&amp;lt;/u&amp;gt; is removed automatically after six hours.&lt;br /&gt;
:* 'ip'-based protection method: With this method, users are not allowed to make changes on the protected pages unless they are using an 'allowed' IP address. To define, whether or not an IP address is 'allowed', X-Cart uses the same base of IP addresses as the [[X-Cart:User_Access_Control|User access control]] functionality. This means that if you are going to use Protected mode based on the 'ip'-based protection method, you should make sure your store's list of allowed IP addresses contains the IP addresses from which you allow security sensitive admin operations.&lt;br /&gt;
&lt;br /&gt;
Note that the values of the constants '''PROTECT_DB_AND_PATCHES''' and '''PROTECT_ESD_AND_TEMPLATES''' can be adjusted independently of one another to give you more flexibility; for instance, you can use 'file'-based protection method for SQL/security and upgrade/patch operations and 'ip'-based protection method for file uploads and template editing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[X-Cart:Config.php|Config.php]]&lt;br /&gt;
* [[X-Cart:User_Access_Control|User Access Control]]&lt;br /&gt;
* [[X-Cart:Security_Profiles|Security Profiles]]&lt;br /&gt;
&lt;br /&gt;
[[Category:X-Cart user manual]]&lt;/div&gt;</summary>
		<author><name>Dohtur</name></author>
		
	</entry>
</feed>