This is a discussion on Disallowing access within the Apache Web Server forums, part of the Web Server and Related Forums category; Is there any way to disallow the server to send content to another domain besides the main address? For example, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Is there any way to disallow the server to send content to another
domain besides the main address? For example, say there's a site abc.com. Someone bought the domain name ab.com and, for some reason or another, made it so their page is simply a big frame that loads the content of abc.com. If I'm abc.com, can I protect my site? Thanks. -- Matt veino@bc.edu http://www.phishyphotos.com rmp photo album: http://www.recmusicphish.com IM: Dividedsky319 |
|
|||
|
"Davide Bianchi" <davideyeahsure@onlyforfun.net> schreef in bericht
news:slrncla2sf.1ik.davideyeahsure@fogg.onlyforfun .net... >> On 2004-09-24, kiwi <veino@bc.edu> wrote: >> For example, say there's a site abc.com. Someone bought the domain name >> ab.com and, for some reason or another, made it so their page is simply >> a big frame that loads the content of abc.com. >> If I'm abc.com, can I protect my site? > Put their IP in your firewall. IMHO that will only work if ab.com is _proxying_ abc.com If ab.com is _framing_ abc.com, a rewriterule with a referer based condition is commonly advised. http://httpd.apache.org/docs-2.0/mis...de.html#access Next, to trap even those clients set not to sent a referrer, one might use client side j(ava)script on every html-file to rewrite the document if the top and self frame are not equal... HansH |
|
|||
|
I think saw the answer to your question on a website the other day but
don't remember where. See if this helps. http://www.chaosreigns.com/adventure...01-11-28&num=1 On Fri, 24 Sep 2004 14:14:58 -0400, kiwi <veino@bc.edu> wrote: >Is there any way to disallow the server to send content to another >domain besides the main address? > >For example, say there's a site abc.com. Someone bought the domain name >ab.com and, for some reason or another, made it so their page is simply >a big frame that loads the content of abc.com. > >If I'm abc.com, can I protect my site? > >Thanks. |
|
|||
|
"Eb" <emcook@yahoo.com> wrote in message news:b93cl0d09ppl7kk8h5kfa1jr1oo4qf4dao@4ax.com... > I think saw the answer to your question on a website the other day but > don't remember where. > > See if this helps. > > http://www.chaosreigns.com/adventure...01-11-28&num=1 > > > On Fri, 24 Sep 2004 14:14:58 -0400, kiwi <veino@bc.edu> wrote: > > >Is there any way to disallow the server to send content to another > >domain besides the main address? > > > >For example, say there's a site abc.com. Someone bought the domain name > >ab.com and, for some reason or another, made it so their page is simply > >a big frame that loads the content of abc.com. > > > >If I'm abc.com, can I protect my site? > > > >Thanks. > put this in the head of your document/template <script> if (parent.frames.length > 0) { parent.location.href = self.document.location } </script> rhis will break your page out of the frames |