• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 296
  • Last Modified:

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.
0
iamgaara
Asked:
iamgaara
1 Solution
 
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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
 
ahoffmannCommented:
iamgaara, what was wrong with the answer 'cause you graded B?
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now