Categories
CSS & HTML Tips

The Ultimate Way to Cloak and Hide any Website Address or URL (Stealth Forwarding)

Most of the existing URL cloaking services are only a redirection by a randomly generated short URL. The real URL of the target website or web page will eventually be revealed when the visitor arrives at it after the obscure redirection. So how to ACTUALLY hide and cloak the destination URL of any website or web page so the address bar of the browser stays unchanged? In other words, how to create a stealth forwarding?

With a simple HTML web page, you can do that very easily. Copy and paste the following HTML code into a file named google.html and save it at example.com/google.html:

<!doctype html>
<html>

<head>
<title>Google</title>
<style type="text/css">
body {margin:0;}
iframe {padding:0;border:0;position:absolute;width:100%;height:100%;}
</style>
</head>

<body>
<iframe src="http://www.google.com/"></iframe>
</body>

</html>

Now navigate to your website http://www.example.com/google.html. It’s Google’s home page no problem. Better yet, the URL in the browser address bar doesn’t change to http://www.google.com/.

By Yang Yang

Hello, I'm Yang. I build online businesses that please people. Want to join in and post some useful articles on Kavoir.com? Shoot me a message.

7 replies on “The Ultimate Way to Cloak and Hide any Website Address or URL (Stealth Forwarding)”

oh sorry, I just do one post. but below is an actual post from me

Most of the existing URL cloaking services are only a redirection by a randomly generated short URL. The real URL of the target website or web page will eventually be revealed when the visitor arrives at it after the obscure redirection. So how to ACTUALLY hide and cloak the destination URL of any website or web page so the address bar of the browser stays unchanged? In other words, how to create a stealth forwarding? With a simple HTML web page, you can do that very easily. Copy and paste the following HTML code into a file named google.html and save it at example.com/google.html:
Thank you, for making web programming tutorial, I was greatly helped with the tutorial here. thanks again.

there is no HTML code after you write

” Copy and paste the following HTML code into a file named google.html and save it at example.com/google.html:”

what do i copy and paste in?

desperately need this solution as the option at the top of this thread only works with a few browsers.

Allan bro,

I know for certain you are not getting the point
just create one website [empty] then save that sites file [any browser]
and folder on desktop now click on that file icon [which shows in browser
left click it and then open it with txt file..erase its content and and
copy-paste above HTML code and instead of http://www.Google.com just give
your favorite website redirection http://www.i-want-to-redirect-this-ite.com….
and then upload this file folder in your any named website like
http://www.i-want-above-site-redirected-on-this-site-but-by-showing-this-sites-url-only.com
the this website will show above redirected site without showing without loosing
its own url …….And you are done….
hope this will satisfy your query

regards
venkatesh.bakale@gmail.com

Thank you! Your code works like a charm! Thank you for sharing as this code is really helpful in cloaking ugly affiliate links a lot of people shy away from when they see it in the address bar.

This method does have a few problems: (1) if the site contains Javascript that assumes it’s not running in a frame, the Javascript might break; (2) if the user has CSS overrides, the iframe size code might not take effect and the iframe could end up being too small; (3) some ad-blockers (and very old browsers) might block the iframe altogether; (4) the user can still say “open frame in new window” etc. The only way to really hide a site’s address is to reverse-proxy for it (by setting up Nginx or something); if you are not the owner of the site then check the legal situation first. 加油!

Comments are closed.