title: Hiding IPs in JavaScript application
body: <p>I'm working on JavaScript application, and to hide ip addresses in the client side, I use includes and requires, as follows:</p>
  
  <p>In includes.php:</p>
  
  <pre><code>require ('C:/Program Files/Apache/Apache2.2/config.php');
  </code></pre>
  
  <p>In config.php:</p>
  
  <pre><code>&lt;?php
  $ServerURL = "http://192.168...:8080";
  ?&gt;
  </code></pre>
  
  <p>and then my main html page, I typed at the top:</p>
  
  <pre><code>&lt;?php 
  include_once("app/common/includes.php");
  </code></pre>
  
  <p>and converted it to .php</p>
  
  <p>and finally I had to retrieve the URL:</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript"&gt;
       var ServerURL = "&lt;?php echo $ServerURL; ?&gt;";
  &lt;/script&gt;
  </code></pre>
  
  <p>the thing is when I run the app, this line:</p>
  
  <pre><code>var ServerURL = "&lt;?php echo $ServerURL; ?&gt;";
  </code></pre>
  
  <p>appears in the client side like:</p>
  
  <pre><code>var ServerURL = "http://192.168...:8080";
  </code></pre>
  
  <p>it's supposed to be hidden</p>