Wordpress Download Link For Email - wordpress

I have a folder that has a .htacess file in it with deny from all. I want to be able to create a link in an email to a file in that folder and allow the user to force download it.
This is exactly like what you do with woocommerce_uploads where, when you buy a download file, it emails you your invoice and you can click the link to download the file.
I need to be able to do the exact same thing, but I don't know how to generate that link.
Please help.
Thanks!

Related

Wordpress downloadable files redirect to file not found

I have a website with digital downloadable products. Sometimes the links just don't work and customers see file not found. Go to shop
I have tried switching from force downloads to redirect only. This method helped for one product only
I wonder if there is any way to fix it
You need to check some steps to resolve this issue. Such as
Check the file path
Check file permissions
Check the download link
Use a file hosting service
Monitor your website logs
i hope this checklist might helpful. Thank u

Allow accessing a files only from specific generated URL in htaccess

I have an issue with 'woocommerce upload' folder because it has a .htaccess with "Deny from all" so that no-one can access the contents of the directory through a browser.
However I want to allow access to the custom download link that woocommerce generated whenever a virtual product has been purchased. Is there a way I can allow access for a specific URL? that came from www.mydomain.com/download_file=xxx&email=&key=xxx?
Thank you!

Confirm by email when a customer sign up in woocommerce

I have used woocommerce and realised that when customers sign up, they can create an account without confirm by email.
What can I do to force confirm by email. Thank you!
You can download this plugin to your website:
https://github.com/wp-plugins/woocommerce-email-verification
And then follow the following instructions:
Installation Instruction & Configuration
In the admin panel plugins page click Add New. Then click on "upload" link. Select the downloaded zip file and install it OR
Download the zip file and extract it. Upload "woocommerce email verification" folder to your plugins directory (wp-content/plugins/).
Activate the plugin through the 'Plugins' menu in WordPress.
Create a page with name "activate". (URL should be yourwebsitedomain.com/activate) and put the following short code and save it.
[woocommerce-email-verification]
Hope it helps!

how to secure woocommerce downloadable files

As the title states I have a question about digital downloadable products through woocommerce. I am new to web development and wordpress so go easy on me. I am trying to add a downloadable product where you can't access the file by direct url. I have set the download type to force download to prevent link sharing but found that I can still access the purchasable files by typing in the direct path Example:
example.com/wp-content/uploads/woocommerce_uploads/2015/06/examplefile.pdf
I have done quite a bit of research but have come up with very few results. One of the only things that I have found is that I should move the downloadable files outside of the root directory. I have attempted to do this but then the download links no longer work. Instead of doing a forced download like normal it redirects to to a page like
example.com/home/user/public_html/home/user/downloads/examplefile.pdf
So I am thinking woocommerce must not be friendly with the files outside the root directory. All in all I am out of ideas of what else to try. Any help or suggestions of how to make this work (having files outside root directory) or other solutions would be greatly appreciated.
If you create a folder outside the public_html directory and upload the files here, you will be safe.
You can find detailed explanations about this topic and how to copy the links of uploaded files in this blog post.
You can add a .htaccess file in the woocommerce_uploads folder with
deny from all

How can i put download link in wordpress

I am working in wordpress.
I don't know how to put download link in wordpress.
Basically my requirement is that, User if click in download link then he able to download source code in zip format from website.
I don't know whether it is done with plugin or not if it is then give me information about it(plugin).
Any Help appreciated.
Use WordPress Download Monitor for adding the download links to the wordpress website.
http://wordpress.org/plugins/download-monitor/
You can use wordpress download manager too
http://wordpress.org/plugins/download-manager/
hello you can do it easly just go to post and click add media now upload you zip file and attach it to the post user can download from there but if you want to monitor your download you can use this plugin :-
http://weblogtoolscollection.com/archives/2009/11/06/the-best-of-series-download-managers/

Resources