title: How to Effectively Hide Href From a Link?
body: <p>I'm trying to hide the href from a download link using PHP and Javascript (To hide the file location). The problem is that most solutions including my code bellow don't really hide the link since the link is still clearly visible in the source code.</p>
  
  <p>I checked many stackoverflow answers and most users say its actually impossible to hide it. However I keep finding websites hiding their links like for example <a href="https://krizis.itch.io/limito" rel="nofollow noreferrer">https://krizis.itch.io/limito</a></p>
  
  <p>Is there any working solution for this? Any idea how they are doing it? Thanks.</p>
  
  <p>My code:</p>
  
  <pre><code>&lt;?php
  $link = "https://www.google.com/robots.txt";
  ?&gt;
  
  &lt;a href="#" id="Link" onclick="Link()"&gt;Link&lt;/a&gt;
  
  &lt;script&gt;
     var download_link = '&lt;?php echo $link; ?&gt;';
     function Link() {
     document.getElementById("Link").href = download_link;
          }
  &lt;/script&gt;
  </code></pre>