How can I generate Shortcode to protect my public links to Dropbox? (?dl=1)
-
Hi!
This plugin manages a “unique string” or “token” like the woocommerce?
It works as a protection for the original file URL.
(https://docs.woocommerce.com/document/digital-downloadable-product-handling/#unique-string)
O Woocomerce obriga que a pessoa esteja logada e verificada, mas acontece que eu n?o vou usar Produtos, mas sim CPT para criar as páginas de Download e pré-visualiza??o do arquivo.I’m creating a subscription site and I want to add the digital file URL to the download button on the product page for those who are logged in.
Similar to artgrid: https://artgrid.io/clip/279578/3d-Animation-Rock-Blue
Or: https://elements.envato.com/I’ll have much buttons: Download 4k, Download Mobile, Download with Watermark …`
I will explain all my scenario, but before I had one idea:
1 Shortcode Method
With the original external or internal URL:‘[Download Roles=”Silver, Gold, Platinum” url=”https://www.dropbox.com/s/b08y8jbmirstjoi/tv_hologram%20close%20touch%202_4k.mp4?dl=1″]’
I lap this shortcode on the Custom Field or within the URL field of the elementor.
The link is rendered like this: https://site.com/?Download_File=9353&token=354762145682368
Redirecting to the original URL after validated:1 – Are you logged in? (if not, ship to page: /login-to-download)
2 – Are you allowed? (if not, send to page: /upgrade-to-%REQUIRED_ROLE%)
3 – All approved: Redirect to the URL inserted into Shortcode:
https://www.dropbox.com/s/b08y8jbmirstjoi/tv_hologram%20close%20touch%202_4k.mp4?dl=1And who can access this link will only be logged in and with the specified ROLE
My scenario:
Elementor
Jengine (CPT)
Woocommerce
Woocommerce subscriptions (maybe)
PublishPress Capabilities (for Custom Roles)I do not have printscreen, but I intend to create with jetengine the CPT it creates custom fields, I would use them to put the links of the files …
Any more information required?
Thanks so much for reading so far!
- The topic ‘How can I generate Shortcode to protect my public links to Dropbox? (?dl=1)’ is closed to new replies.