Answers.Body: <p>The following methods can be still reached if your clients are given the webpage link by you. The first several methods take you to a webpage where you need to place the epub link.</p>
  <ol>
  <li><p>Wrap link with an HTML comment tag: <code>&lt;!--&lt;a href=&quot;https://www.ese.net/epub.html&gt;&lt;/a&gt;--&gt;</code></p>
  </li>
  <li><p>Or use CSS and put a  <code>class=&quot;hidden&quot;</code> in the link and use the CSS style code below. Or use <code>'display:none'</code> as another option.</p>
  </li>
  <li><p>Or style the actual link inline directly:  <code>style=&quot;visibility:hidden;&quot;</code></p>
  </li>
  </ol>
  <p><em><strong>Alternative:</strong></em>
  If you want the epub to immediately start downloading at moment of click, replace the html page link with your actual epub link like this:</p>
  <pre><code>&lt;a href=&quot;your-epub.epub&quot; class=&quot;hidden&quot;&gt;EPUB&lt;/a&gt;
  </code></pre>
  <p>CSS styling for the above:</p>
  <pre><code>&lt;style&gt;
  /* keep the space it consumes but make it invisible */
  .hidden {visibility: hidden;}
  /* remove the space and make it invisible */
  .none {display: none;}
  &lt;/style&gt;
  </code></pre>
  <p>See <strong>MDN Mozilla</strong> website (or w3schools) for display visibility, display hidden, display none.
  Welcome to ESE.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-03-20T21:12:32.407Z
Answers.LastActivityDate: 2024-03-20T21:12:32.407Z
Answers.UserDisplayName: granite
Body: <p>I have written a small booklet.  It will be used in an upcoming event, and I want the leaders to get an advanced epub copy.  I would like to attach this to my organizations html website.  It would be great if they could see the book, but I want them to be able to download it at a minimum.  I have searched many times for the HTML codes to do this and nothing I have found works.  Any help would be appreciated.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-04-05T18:21:21.297Z
Comments.Text: Of course you are aware that whoever gets somehow the link to the page may download the booklet, right?
Comments.UserDisplayName: mau
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-08-18T07:46:10.293Z
Comments.Text: I’m voting to close this question because this is off topic. pubs are just another file for web servers. So normal HTML and web server programming is used. Some research needs to be done before this would be an allowed question on Stack Overflow
Comments.UserDisplayName: mmmmmm
Tags: <epub><website>
Title: Can I post an ePub book on my website host and then hide a link in a page so only those I want can read the book? Is there HTML code for that?
UserDisplayName: Matthew Douglas
ThreadText: # Can I post an ePub book on my website host and then hide a link in a page so only those I want can read the book? Is there HTML code for that?
  
  (Asked by: username_0 on 2024-03-20)
  
  I have written a small booklet. It will be used in an upcoming event, and I want the leaders to get an advanced epub copy. I would like to attach this to my organizations html website. It would be great if they could see the book, but I want them to be able to download it at a minimum. I have searched many times for the HTML codes to do this and nothing I have found works. Any help would be appreciated.
  
  **Tags:** epub, website
  
  > **Comments:**
  > **username_1**: Of course you are aware that whoever gets somehow the link to the page may download the booklet, right?  
  > **username_2**: I’m voting to close this question because this is off topic. pubs are just another file for web servers. So normal HTML and web server programming is used. Some research needs to be done before this would be an allowed question on Stack Overflow  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2024-03-20. Score: 0
  
  The following methods can be still reached if your clients are given the webpage link by you. The first several methods take you to a webpage where you need to place the epub link.
  
  1. Wrap link with an HTML comment tag: `<!--<a href="https://www.ese.net/epub.html></a>-->`
  2. Or use CSS and put a `class="hidden"` in the link and use the CSS style code below. Or use `'display:none'` as another option.
  3. Or style the actual link inline directly: `style="visibility:hidden;"`
  
  ***Alternative:***
  If you want the epub to immediately start downloading at moment of click, replace the html page link with your actual epub link like this:
  
  ```
  <a href="your-epub.epub" class="hidden">EPUB</a>
  
  ```
  
  CSS styling for the above:
  
  ```
  <style>
  /* keep the space it consumes but make it invisible */
  .hidden {visibility: hidden;}
  /* remove the space and make it invisible */
  .none {display: none;}
  </style>
  
  ```
  
  See **MDN Mozilla** website (or w3schools) for display visibility, display hidden, display none.
  Welcome to ESE.
  
  
  ---
  
  