mask my link

Hi!

I have two sites. one www.pokemon.com , the other www.digimon.com
now I've placed a file on pokemon that I want to link from digimon, but I don't want the users to know that it comes from pokemon.com/files/themovie.avi.

it's okay if they find out it comes from pokemon.com but I want to hide the filepath and filename if possible.

so how can I mask the link?? I saw a anti-leech masking script but its official site is closed and I can't get it anywhere.
Can anyone please link me to a similar script?? all 500 points goes to the first one to help on this.
iamgaaraAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Irwin SantosComputer Integration SpecialistCommented:
you need to create a virtual directory or symbolic link

What server OS are you using?
0
Sam PanwarSr. Server AdministratorCommented:
0
ahoffmannCommented:
> .. I want to hide the filepath and filename if possible.
if both domains are hosted on the same physical server, check your server configuration how to do internal redirects
if the domains are hosted on different servers, you need a script on the forst one to fetch the file from the hidden one and deliver it to the user
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

iamgaaraAuthor Commented:
its linux and not windows.
the .htaccess is actually revealing the url and path in FireFox, but not in IE.
0
ahoffmannCommented:
it's neither a problem of the OS, nor the browser. It's a problem of your topology and how you access files there. Please read my suggestion again.
0
iamgaaraAuthor Commented:
YES I UNDERSTAND
*if the domains are hosted on different servers, you need a script on the forst one to fetch the file from the hidden one and deliver it to the user"

but where to find such script?
0
ahoffmannCommented:
> but where to find such script?
depends on your used technology for CGIs, in a UNIX shell that's as simple as:

  wget -O - http://other.tld/hidden/path/file.img

0
iamgaaraAuthor Commented:
how can I execute that from a html or php site.
I am very newbie and you're very close to receiving all the 500 points.
0
WilliamFrantzCommented:
If you have PHP, then you can simply use readfile() to include the remote file.  For example, on digimon.com, create a file called foo.php containing this:

<?php
header("Content-Type: video/avi");
header("Content-Transfer-Encoding: binary");
@readfile('http://pokemon.com/files/themovie.avi');
?>

Now point your browser to http://digimon.com/foo.php and you'll see themovie.avi but you won't know where it's coming from.  Note, this will have an adverse effect on your bandwidth since digimon will be tunneling all the data.  Each request will consume 3 times the bandwidth of simply pointing people to the file on pokemon.com.  You will also need to be careful about those MIME headers.  By default, most servers will send PHP content as 'text/html'.  If you are tuneling a video, you need to send the proper headers.  You can do that inside your PHP script as I have shown above, or you could handle it within a .htaccess file.

More details: http://us3.php.net/manual/en/function.readfile.php
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ahoffmannCommented:
iamgaara, what was wrong with the answer 'cause you graded B?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.