mask url created by php

Here’s the deal. I want to setup a free file sharing system iv setup the template page for when i upload new files using a form. it generates a page for each files.

The template page has a few functions.

I have a custom field with a a name of file_attachment.

the value of that field is a url.

when each page is created the form uses the custom field template to populate the new page with the files url.

which is fine works like a charm!

My issue is when i have this code

[php]<?php
$customField = get_post_custom_values(“file_attachment”);
if (isset($customField[0])) {
echo ‘

Download Now!

’;
} ?>[/php]

The end user can see the file path to my server

$customField[0] is the url string that turns into the url for each file.

is there some way to scramble the url to my file so the cant just hotlink to it.

i dont want them to see url/folder/folder/folder/file.zip

so they can just copy the link and paste it

Sponsor our Newsletter | Privacy Policy | Terms of Service