Support » Fixing WordPress » How to hide a video’s full url?

  • When you embed a video on your website, there’s always someone who can use that url and embed it on their website. This leads to bandwidth stealing. I want to prevent this.

    I’m using custom fields to get the url of a video which I am hosting on my server. Here is my code:

    <a href="<?php $key="videolink"; echo get_post_meta($post->ID, $key, true); ?>" rel="mediabox[<?php $key="videowidth"; echo get_post_meta($post->ID, $key, true); ?> <?php $key="videoheight"; echo get_post_meta($post->ID, $key, true); ?>]" Title="Click here to instantly play this video"><img src="<?php $key_name="imageurl"; $key_value = get_post_meta($post->ID, $key_name, true); ?><?php echo $key_value; ?>" /></a>

    The custom field name for the video url above is videolink.

    How can I hide the video’s url?

  • The topic ‘How to hide a video’s full url?’ is closed to new replies.