Title: private url
Last modified: January 20, 2022

---

# private url

 *  [macpheek](https://wordpress.org/support/users/macpheek/)
 * (@macpheek)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/private-url/)
 * Hi there, I have various private content pages with pdf documents. A client has
   raised an issue that any of these pdf documents can be viewed by anyone if the
   url is copied and pasted into an email.
    Is there any way if a url is shared,
   whoever attempts to access it must be prompted to login?
 * I’m not sure if this is possible, but I told my client I would ask you!
    Hope
   you can help 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Aldo Latino](https://wordpress.org/support/users/aldolat/)
 * (@aldolat)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/private-url/#post-15277816)
 * This plugin can hide portions of the text to some users. This plugin does only
   this thing. This means that you can hide a link to a PDF document and, instead,
   show it to other users.
 * When you hide a portion of text to some users, you can use a dedicated option
   of the shortcode to show an alternate message to the unauthorized users, for 
   example: “Hey, if you login, you can see the link to the PDF!”.
 * The option is `alt="Public text to show to anyone"`. For example:
 *     ```
       [private role="author" alt="You have not rights to read this."]Text for authors only[/private]
       ```
   
 * The text “Text for authors only” will be shown to authorized users. The text “
   You have not rights to read this.” will be shown to unauthorized users.
 * Let me know if it’s clear.
 *  Thread Starter [macpheek](https://wordpress.org/support/users/macpheek/)
 * (@macpheek)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/private-url/#post-15292042)
 * Hi, thanks for your reply
    OK, so to confirm I can hide text / links on a page
   to a logged out users, eg
 * Click this link… (for logged in users)
    You do not have the rights to view.. (
   for non-logged in users)
 * But anyone who shares the actual PDFs url, eg sitename.com/wp-content/uploads/
   filename.pdf
    anyone they share it with will be able to see it, there’s no way
   around that?
 * thanks in advance
 *  Plugin Author [Aldo Latino](https://wordpress.org/support/users/aldolat/)
 * (@aldolat)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/private-url/#post-15294766)
 * Yes, the solution is to use a plugin made for this purpose. My plugin is a simple
   plugin to hide portions of text. If you want to share documents privately, so
   that only the intended users can download them, you have to use a different plugin,
   for example [this](https://wordpress.org/plugins/ultimate-member/) or others:
   search the [WP directory](https://wordpress.org/plugins) for this.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘private url’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/private-content_924d8c.svg)
 * [Private Content](https://wordpress.org/plugins/private-content/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/private-content/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/private-content/)
 * [Active Topics](https://wordpress.org/support/plugin/private-content/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/private-content/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/private-content/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Aldo Latino](https://wordpress.org/support/users/aldolat/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/private-url/#post-15294766)
 * Status: not resolved