PHP masked links [Solved]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
echofool
Forum Newbie
Posts: 16
Joined: Mon Mar 22, 2010 1:15 pm

PHP masked links [Solved]

Post by echofool »

Hey,

I have a website which i post my custom made content on the internet to premium members on my site but people keep giving out the download link. So i wanted to "mask" my links.

I host my content on megaupload and these types of links pass around like wild fire basically allowing pirates to share it without paying... so i was hopeing there is something in php that can start the download with a function and not actually show the link in page source / html.

Say the link http://www.megaupload.com?d=12345678 ( this is not a valid link btw just an example ) now thats masked by Megaupload, you cant find the real location of the file in question, but is there a way to mask that link aswell on my site? - So when they click it it will either download or ask them to sign into megaupload...

Im thinking curl might be required but this is a complex thing for my level of PHP so hopeing some one can shed light on if there is even possible.
Last edited by echofool on Wed Apr 14, 2010 4:56 pm, edited 1 time in total.
lunarnet76
Forum Commoner
Posts: 67
Joined: Sun Apr 04, 2010 2:07 pm
Location: Edinburgh

Re: PHP masked links

Post by lunarnet76 »

hi,

your unfortunately facing a problem that can't be solved like that :banghead: ,
you could use curl to stream the entire file from megaupload to the other one but that means that you would basically made them download it from your site ... so megaupload will be useless, otherwise there is no way to give them the link to megaupload with having them ... not having it!
Sorry!
echofool
Forum Newbie
Posts: 16
Joined: Mon Mar 22, 2010 1:15 pm

Re: PHP masked links [Solved]

Post by echofool »

Was worth a shot :) Thanks anyway !
Post Reply