WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use my Wordpress site to host downloads, among other things. According to German law I need to make a user accept the license agreement prior to being able to download a program.

I am thinking of displaying the license agreement in a pop-up window similar to the way Codeplex does it (see this page and click on download). How can I accomplish this easily in Wordpress?

share|improve this question
How are you planning to display the link to download. Is it going to be built in as part of the theme, or are you just going to put have a link to the download file in the post/page? – imHavoc Nov 25 '11 at 22:53
I am just putting a link manually on my Wordpress page. – Helge Klein Nov 25 '11 at 22:55
This is not really a WordPress specific problem. You need to create the JavaScript for the popup window (I'd suggest ColorBox or something similar) and simply link to that on your page. – Shaun Jan 13 '12 at 23:26
up vote 2 down vote accepted

Not being able to find anything I finally went ahead and created the WordPress plugin Terms before download. From the plugin's description:

Terms Before Download adds a shortcode that can be used instead of HTML anchors to link to downloadable files. If such a link is clicked a popup dialog shows terms and conditions (EULA) which must be accepted for the download to start.

The terms and conditions are read from a WordPress page. That way there is only a single place to maintain the terms and they can easily be displayed independently of the plugin.

The plugin supports Google Analytics to keep track of the number of downloads.

share|improve this answer
+1 on creating your own plugin – Brian Fegter Dec 10 '14 at 21:41

I would take a look at one of the several Download Manager Plugins in the repository, and see if any of them meet your needs.

share|improve this answer
Could you give me a more specific answer? – Helge Klein Nov 25 '11 at 23:28
Did you look through any of the available Plugins? – Chip Bennett Nov 26 '11 at 3:30
I did and they do not meet the requirements stated in my question. – Helge Klein Dec 8 '11 at 15:15

I also have encountered a similar problem and can't find a specific plugin to solution the problem. Because of this, it's going to have to be a custom solution sadly. Here are what I see as the potential solutions: (I use Download Monitor Wordpress plugin to keep track of downloads and has a feature "Force Download" which hides the actual file URL AFAIK)

  • Enable "Member only file?" feature of plugin.
    • This is good for specific files as I can state to use a pre-generated Login/Password to agree to the EULA (with link) and download the file (the site doesn't allow registration so it would be limited to what accounts I create. The problem is I don't think this is a very user friendly way of controlling the EULA agreement process and confirms the EULA signoff properly if they just keep using the login credentials.
  • Implement client side javascript that hides the link until they signoff on the EULA (checkbox/etc) similar to the way Oracle's website has to signoff on specific EULAs. Once they agree, the links are activated and they can click on them to download.
    • The main issue is that people could save the file URL (nd copy/paste in email/other site and just download the file afterwards without the proper EULA signoff.
  • Modify the plugin to check for a cookie field that is enabled from a EULA page that the user has to go through first.
    • Don't prefer this feature as if the plugin gets updated, it might break the code.
  • I have the plugin to do a Custom download URL which redirects the http://somesite.com/download/filename.zip to the default /wp-content/plugins/download-monitor/download.php?id=1. I can do a pre-redirect to a EULA check PHP page/template to see IF it needs a EULA signoff to display the agreement and if agreed then push the file.

This is the best way of handling it as it is customizable, doesn't break the plugin, people can share the file URL safely and still have EULA signoff and should be fairly easy to implement. I haven't completed the solution but I see no major issues (Assuming you are familiar in using the default plugin template as a guide to implementing the queries/check in the code.)


share|improve this answer

It looks like there is nothing to add the feature of a License Agreement page for downloads in particular. I am currently looking for the same functionality but am forced to sort of see if I can create a custom EULA page and once agreed to, have it coded in PHP to download the file.

share|improve this answer
I, too, have searched high and low and did not find a solution. – Helge Klein Jan 13 '12 at 20:40
This is not an answer. – kaiser Nov 5 '12 at 4:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.