Domain masking with HTML

How to mask the url of another site with HTML?

For example, I would like:

http://www.example.com/source.html

To point to another page:

http://www.example.com/dest.html

Please note that the destination page may be on a different domain.

+1


source to share


5 answers


It seems like the frameset I was looking for:



<frameset rows="100%">
    <frame src="http://www.example.com/dest.html"/>
</frameset>

      

+2


source


There are many people out there who claim that your goal is to mislead the user, that it is unethical. However, if you really have to do this, can you leave the link alone and redirect when the user comes to the linked page?



+3


source


If you are using Apache, you can use the REWRITE mod, but it must be on the same domain. In .NET, libraries are being rewritten. People will see in the address bar: source.html, but the code will be named dest.html.

Anything else is simple redirects.

0


source


You can do it with javascript. Just stick with this on your page and it redirects:

<script>location.href = 'http://www.example.com/dest.htm'</script>

      

0


source


One way to do this is with an invisible frame set to 100% of the browser height. But what happens when someone clicks a link on this frame? I agree with DOK, people will be suspicious of your motives for doing this.

0


source







All Articles