p
k^$cfg["verify-protocol"]$ controls whether %app-name% should check if the transfer protocol is b^HTTP$ or b^HTTPS$.

p
Set k^$cfg["verify-protocol"]$ to b^1$ to enable the checking.

code
$cfg["verify-protocol"]=1;
/code

p
If k^$cfg["verify-protocol"]=1$ (enabled), then %app-name% checks if the transfer protocol is b^HTTP$ or b^HTTPS$. If neither, then %app-name% will not output HTML code. 

p
Note that if you open the page locally in a file manager ( instead of a web browser ), the transfer protocol is b^FILE$ ( neither b^HTTP$ nor b^HTTPS$ ).

p
Set k^$cfg["verify-protocol"]$ to b^0$ to disable the checking.

code
$cfg["verify-protocol"]=0;
/code

p
The default value of k^$cfg["verify-protocol"]$ is b^0$ (disabled).

code
$cfg["verify-protocol"]=0;
/code

raw
<style>
.qa-list {
	margin-top:50px;
	margin-bottom:20px;
}
.qa-box {
	margin:10px 0;
	padding:10px 20px;
	padding-top:40px;
	border:1px solid #ccc;
	border-radius:7px;
}
.q-box,
.a-box {
}
.q-box {
	color:#000;
	margin-bottom:10px;
}
.a-box {
	color:#000;
}
.q,
.a {
	display:table-cell;
	padding-right:10px;
	font-weight:bold;
	font-size:36px;
	width:50px;
	vertical-align:top;
	text-shadow:1px 1px 3px #888;

	position:relative;
	top:-3px;
}
.q {
	color:blue;
}
.a {
	color:red;
}
.q-txt,
.a-txt {
	display:table-cell;
	vertical-align:middle;
}
</style>

<div class="qa-list">
<div class="qa-box">
	<div class="q-box">
		<div class="q">Q.</div>
		<div class="q-txt">

<p>
Can you give me an example of when I should enable <b>$cfg["verify-protocol"]</b>?
</p>

		</div>
	</div>
	<div class="a-box">
		<div class="a">A.</div>
		<div class="a-txt">

<p>
Suppose that you enable <b>$cfg["verify-protocol"]</b> for your webpage. If someone downloads the webpage onto the Desktop of their local machine and opens it locally in a browser, they will see a blank page instead of the content of the webpage. This happens because <b>$cfg["verify-protocol"]</b> verifies the transfer protocol when they try to open it.
</p>

<p>
<b>$cfg["verify-protocol"]</b> displays the content of the webpage only when the transfer protocol is either <b>HTTP</b> or <b>HTTPS</b>. Since they are opening the webpage locally, the transfer protocol is <b>FILE</b>, which is neither <b>HTTP</b> nor <b>HTTPS</b>. So, by enabling <b>$cfg["verify-protocol"]</b>, you have prevented them from viewing the webpage’s content on their local machine.
</p>

		</div>
	</div>
</div>
</div><!--/qa-list-->
/raw

tpl
std
