<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>THE MOLITOR FORUMS &#187; Topic: USER EDITS - Protect audio from download</title>
		<link>http://www.themolitor.com/forums/topic/little-modification-to-protect-audio-from-download</link>
		<description>THE MOLITOR FORUMS &#187; Topic: USER EDITS - Protect audio from download</description>
		<language>en-US</language>
		<pubDate>Tue, 28 Apr 2026 06:52:04 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/little-modification-to-protect-audio-from-download" rel="self" type="application/rss+xml" />

		<item>
			<title>THE MOLITOR on "USER EDITS - Protect audio from download"</title>
			<link>http://www.themolitor.com/forums/topic/little-modification-to-protect-audio-from-download#post-33657</link>
			<pubDate>Mon, 23 Mar 2015 10:34:04 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">33657@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>The audio player uses HTML5, not flash, so the tracks must be loaded in order for the audio player to actually play the audio. </p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>icarorio on "USER EDITS - Protect audio from download"</title>
			<link>http://www.themolitor.com/forums/topic/little-modification-to-protect-audio-from-download#post-33650</link>
			<pubDate>Sun, 22 Mar 2015 07:58:48 +0000</pubDate>
			<dc:creator>icarorio</dc:creator>
			<guid isPermaLink="false">33650@http://www.themolitor.com/forums/</guid>
			<description><p>Cool, but the way the tracks keeps appearing in the source code ... Ideally hide the tracks in the source code ...
</p></description>
		</item>
		<item>
			<title>roboclip on "USER EDITS - Protect audio from download"</title>
			<link>http://www.themolitor.com/forums/topic/little-modification-to-protect-audio-from-download#post-14673</link>
			<pubDate>Fri, 14 Sep 2012 08:53:22 +0000</pubDate>
			<dc:creator>roboclip</dc:creator>
			<guid isPermaLink="false">14673@http://www.themolitor.com/forums/</guid>
			<description><p>NVM. Got it.</p>
<p>Cheers,</p>
<p>Kade
</p></description>
		</item>
		<item>
			<title>roboclip on "USER EDITS - Protect audio from download"</title>
			<link>http://www.themolitor.com/forums/topic/little-modification-to-protect-audio-from-download#post-14672</link>
			<pubDate>Fri, 14 Sep 2012 08:46:54 +0000</pubDate>
			<dc:creator>roboclip</dc:creator>
			<guid isPermaLink="false">14672@http://www.themolitor.com/forums/</guid>
			<description><p>Do you know where the "scripts" folder and "custom.js" is usually installed. I am haveing a hard time finding it.</p>
<p>Thanks,</p>
<p>Kade
</p></description>
		</item>
		<item>
			<title>vukmaster on "USER EDITS - Protect audio from download"</title>
			<link>http://www.themolitor.com/forums/topic/little-modification-to-protect-audio-from-download#post-14511</link>
			<pubDate>Sun, 09 Sep 2012 17:26:23 +0000</pubDate>
			<dc:creator>vukmaster</dc:creator>
			<guid isPermaLink="false">14511@http://www.themolitor.com/forums/</guid>
			<description><p>Hey, I am only using the Word Press version, so that's all I can speak to.  Perhaps the author or an HTML version user can let you know.  But in terms of the strategy (covering links with span elements), it should be universally applicable.
</p></description>
		</item>
		<item>
			<title>archiehern on "USER EDITS - Protect audio from download"</title>
			<link>http://www.themolitor.com/forums/topic/little-modification-to-protect-audio-from-download#post-14510</link>
			<pubDate>Sun, 09 Sep 2012 16:52:41 +0000</pubDate>
			<dc:creator>archiehern</dc:creator>
			<guid isPermaLink="false">14510@http://www.themolitor.com/forums/</guid>
			<description><p>Hi Vukmaster!</p>
<p>Thanks for the info above.</p>
<p>Quick question, will this work for the standard html version or only on Word Press?</p>
<p>Thanks again!
</p></description>
		</item>
		<item>
			<title>vukmaster on "USER EDITS - Protect audio from download"</title>
			<link>http://www.themolitor.com/forums/topic/little-modification-to-protect-audio-from-download#post-13153</link>
			<pubDate>Tue, 24 Jul 2012 07:17:59 +0000</pubDate>
			<dc:creator>vukmaster</dc:creator>
			<guid isPermaLink="false">13153@http://www.themolitor.com/forums/</guid>
			<description><p>glad it's coming in handy :D
</p></description>
		</item>
		<item>
			<title>alisonconard on "USER EDITS - Protect audio from download"</title>
			<link>http://www.themolitor.com/forums/topic/little-modification-to-protect-audio-from-download#post-13137</link>
			<pubDate>Tue, 24 Jul 2012 06:13:46 +0000</pubDate>
			<dc:creator>alisonconard</dc:creator>
			<guid isPermaLink="false">13137@http://www.themolitor.com/forums/</guid>
			<description><p>Thanks a million!
</p></description>
		</item>
		<item>
			<title>vjblaze on "USER EDITS - Protect audio from download"</title>
			<link>http://www.themolitor.com/forums/topic/little-modification-to-protect-audio-from-download#post-13099</link>
			<pubDate>Mon, 23 Jul 2012 16:56:32 +0000</pubDate>
			<dc:creator>vjblaze</dc:creator>
			<guid isPermaLink="false">13099@http://www.themolitor.com/forums/</guid>
			<description><p>Great Addition! Thank you for the share!
</p></description>
		</item>
		<item>
			<title>TreTuna on "USER EDITS - Protect audio from download"</title>
			<link>http://www.themolitor.com/forums/topic/little-modification-to-protect-audio-from-download#post-8805</link>
			<pubDate>Tue, 10 Apr 2012 14:41:57 +0000</pubDate>
			<dc:creator>TreTuna</dc:creator>
			<guid isPermaLink="false">8805@http://www.themolitor.com/forums/</guid>
			<description><p>Excellent, this was one of my biggest concerns with Nocturnal. Definitely implementing this in, thanks!
</p></description>
		</item>
		<item>
			<title>Justin on "USER EDITS - Protect audio from download"</title>
			<link>http://www.themolitor.com/forums/topic/little-modification-to-protect-audio-from-download#post-8581</link>
			<pubDate>Wed, 04 Apr 2012 18:13:23 +0000</pubDate>
			<dc:creator>Justin</dc:creator>
			<guid isPermaLink="false">8581@http://www.themolitor.com/forums/</guid>
			<description><p>Thanks for sharing.
</p></description>
		</item>
		<item>
			<title>vukmaster on "USER EDITS - Protect audio from download"</title>
			<link>http://www.themolitor.com/forums/topic/little-modification-to-protect-audio-from-download#post-8509</link>
			<pubDate>Tue, 03 Apr 2012 18:00:42 +0000</pubDate>
			<dc:creator>vukmaster</dc:creator>
			<guid isPermaLink="false">8509@http://www.themolitor.com/forums/</guid>
			<description><p>The theme allows you to attach audio to posts, but this also leaves it vulnerable to download via right-click &#62; save as.  You can use low quality, shortened, sound-marked samples to deter downloads, but this may also deter users from playing the audio.  You can disable right-clicks with javascript, but this is annoying, only works if users don't take anti-javascript measures, and goes against standards.  I have a couple small modifications that can protect your audio from download without disabling the right-click.  No tech abilities required, other than copy/paste.  Basically we add a span element that sits on top of each song link element as a blocker. We transfer it's mouse events to the audio file's events while preventing the right click from accessing the song link or revealing the file name in the status bar.</p>
<p>For an example, see my post at <a href="http://vuklazar.com/?p=118" rel="nofollow">http://vuklazar.com/?p=118</a></p>
<p>Note, savvy users can still find ways around it, but the effort required probably outweighs the cost of buying music. </p>
<p>Here we go.</p>
<p>1) css: add this into your custom css area (option tree plugin) or into the theme's style.css (appearance &#62; editor)to make sure the new span elements sit right on top of the song links</p>
<pre><code>.songs li {
	position: relative !important;
	display: block;
	float: left;
	overlfow: hidden;
}
.dlblock {
	position: absolute !important;
	height:100%; width:100%;
	z-index:2;
	background:none !important;
}</code></pre>
<p>2) php: go to appearance &#62; editor and add the span element to archive.php, index.php, page.php, search.php, single.php, and category.php.  They all contain the same foreach loop with 3 'echo' lines.  Add the span right before each song link is retrieved so the loops look like this</p>
<pre><code>foreach ($attachments as $attachment) {
	echo &#34;&#60;li&#62;&#34;;
	echo &#34;&#60;span class=&#039;dlblock&#039;&#62;&#60;/span&#62;&#34;;
	echo wp_get_attachment_link($attachment-&#62;ID);
	echo &#34;&#60;/li&#62;&#34;;
}</code></pre>
<p>3) javascript: tie the new span's mouse events to the original link's events by adding this into custom.js (in the scripts folder under the theme installation, not accessible through WP as far as I know).  It's recommended you add this under the "//SONG STUFF" section. Note click events work differently and don't need to be tied.</p>
<pre><code>var songBlock = jQuery(&#34;ol.songs li span&#34;);
songBlock.live(&#039;mouseover&#039;, function(){
	jQuery(this).next(&#039;a&#039;).trigger(&#039;mouseover&#039;);
});
songBlock.live(&#039;mouseout&#039;, function(){
	jQuery(this).next(&#039;a&#039;).trigger(&#039;mouseout&#039;);
});</code></pre>
<p>And that's it.  I tested in Google Chrome and IE on a PC and found no issues.
</p></description>
		</item>

	</channel>
</rss>
