Web Hosting Talk







View Full Version : Website Cloaking


newk
07-22-2004, 08:39 AM
hi,

theres an existing website that is hosted in another server.
www.john.com

is it possible to use my domain www.mike.com domain for www.john.com ?

when surfers type www.mike.com it will use the data and anything in www.john.com including the trailings like www.john.com/directory/fan.htm

is that possible?

sbalmos
07-22-2004, 09:29 AM
Point www.mike.com to the same server as www.john.com in DNS. Then add a ServerAlias www.mike.com directive in Apache's virtual host section for www.john.com... Or likewise in whatever control panel you use (I've never used any CP, sorry).

HTH

--Scott

newk
07-23-2004, 07:42 AM
what if i dont have control over the domain john.com dns ?

is there any other way of cloaking ?
html framing is ok but still it displays the real url in the browser status bar.

any cgi prox y or perl program that mask the real domain?

jmcgon
07-23-2004, 08:02 AM
He wants to hotlink to other data and make it look like hes hosting it on mike.com. IMHO users dont care where it comes from as long as they get it. The people at john.com will be pissed with you though.

Your going for vanity you dont need, although you can mask links in the status bar with html or javascript.

sbalmos
07-23-2004, 09:26 AM
Uhhh, yeah I'd be pissed too. You don't exactly take content pages straight from the Wall Street Journal, mask it in a frame, and call it Bob's Investor Daily. :o

TR Seeks
07-23-2004, 09:36 AM
Think about using IFrames...

I agree with sbalmos and jmcgon. Its obvious you dont have permission otherwise they would let you park the domaina and give you access. So think about it first.

concreteman
07-27-2004, 03:50 AM
actuall I do... I use an iframe to display paypals pages over a secure connection... the nice thing is it gets wrapped in my frame and most people couldn't tell the pages are from 2 sources - they complete there order in multiple pages and don't have to leave the same window to do so. In the case of paypal and payment portals however and to be nice to other sites, it would be nice to imform the users the content is from elswhere and provide them a link to break out and complete there transaction on a single secure site. As for making content appear to be yours it is a bad thing and can get you in trouble - so make sure you have permission and provide links or appreciation - ask first.

newk
08-04-2004, 08:29 AM
my usage is for LEGAL purpose i have an account with this particular website.

they gave me
http://MYNAME.theirdomain.com

so its not good idea to have a business that is shown
their domain name over my website. clients might go to their site
instead of me.

so cloaking is the solution. your asking why not park my domain over their server. i want to customized my site and only access their site for some infos needed and the SSL transaction over their website.


concreteman:
can you provide sample info of your iFRAME?
what your website that has iFRAME?

BigBison
08-04-2004, 05:58 PM
I think what you want is a dedicated IP address to point your domain at, as opposed to URL-forwarding onto myname.theirdomain.com. It's the simplest solution for what you're after. I don't know how you would be able to hide the fact you're using someone else's secure order page.

Iframe is one option, another is a php include, which to use has been debated here before, there are pros and cons to each.

concreteman
08-04-2004, 06:39 PM
ok a simple explanation, first of all I have scripts running my site - but I enter the scripts through a frame so my url is locked in the address bar. In my index.html file at the root of www I added -
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD>
<base href="https://secure.webhostingaccess.com/" />

<meta name="DESCRIPTION" content="">
<TITLE></TITLE>
</HEAD>
<FRAMESET ROWS="100%, *" frameborder="no" framespacing=0 border=0>
<FRAME SRC="https://secure.webhostingaccess.com/index.php" NAME="mainwindow" frameborder="no" framespacing="0" marginheight="0" marginwidth="0"></FRAME>
</FRAMESET>
<NOFRAMES>
<CENTER>
<H2>
Your browser does not support frames. We recommend upgrading your browser.
</H2>
<br><br>
Click <a href="https://secure.webhostingaccess.com">here</a> to enter the site.
</CENTER>
</NOFRAMES>
</HTML>

-I also have done some work on my .htaccess file to push people to the ssl side of the site when needed and redirect when the have just a dirctory listing, it goes like this-

RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)?$ https://%{SERVER_NAME}%{REQUEST_URI}

# RewriteRule ^(.*)?$ https://%{SERVER_NAME}/$1 [L,R]

Redirect Permanent index.htm https://secure.webhostingaccess.com
Redirect permanent /thanks https://secure.webhostingaccess.com/whos/thanks.html

- there is more to it then that, but it should give you an idea -

then from pages where you want their content you add an iframe which pulls content from outside sources and displays them in a frame -

here is html for a simple iframe-
<IFRAME src="foo.html" width="400" height="500"
scrolling="auto" frameborder="1">
[Your user agent does not support frames or is currently configured
not to display frames. However, you may visit
<A href="foo.html">the related document.</A>]
</IFRAME>

-I pulled that info out of http://www.w3.org/TR/html4/present/frames.html#edef-IFRAME and they have real good information if you are interested in learning more. Hopefull that helps let me know if you get stuck anyware, also you might want to practice some of this stuff on unimportant pages till you see how it works. If you want to see some of this in action goto http://secure.webhostingaccess.com and click on the paypal link on the left side menu I also have a way for people to break out of my frames because there are times when even though my site is secure they may not feel comfortable. Hope this helps.

ps, i am digging through code to find an unterminated comment somewhere in my site so don't bother letting me know about that one, but if you see anything else in my sight that is annoying, do let me know.