I have a lot of video clips on my site available for download. Below code achieves that. Now I know how to detect if a user has AdBlock installed, these links helped me: 1 help1
2 help2
3 help3
With most these solutions a "general" custom message gets shown if AdBlock is detected but there are no more "tougher" actions implemented, so is it also possible that when a user clicks "download" that the "download" output is a message like "You need to enable advertisements to display in order to download video clips" instead of that the user can actually download the file???
HTML DOWNLOAD :
<div class="box download-box">
<a class="button" href="">
<i class="fa fa-download"></i> Download
</a>
</div>
HTACCESS :
<FilesMatch "\.(mov|avi|mp4)$" >
ForceType application/octet-stream
Header add Content-Disposition "attachment"
</FilesMatch>