title: how to prevent PHP's file_get_contents( )
body: <p>one of my php page returns data like this:</p>
  
  <pre><code>&lt;?php
    //...
    echo "json string";
  ?&gt;
  </code></pre>
  
  <p>but someone else use file_get_contents() to get my data and use in other website.</p>
  
  <p>can anybody tell me what can i do to prevent such thing happen. </p>
  
  <p>i consider if i can get the request's domain name to echo something else.but i dont know </p>
  
  <p>the function to get request's domain name.and if the request is sent by a server,that </p>
  
  <p>will be unhelpful. My English is poor, to express doubts, please bear with.</p>