Disallowing access

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, ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-24-2004
kiwi
 
Posts: n/a
Default Disallowing access

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
  #2 (permalink)  
Old 09-25-2004
Davide Bianchi
 
Posts: n/a
Default Re: Disallowing access

On 2004-09-24, kiwi <veino@bc.edu> wrote:
> If I'm abc.com, can I protect my site?


Put their IP in your firewall.
Davide

--
Q: What does the CE in Windows CE stand for?
A: Caveat Emptor.
  #3 (permalink)  
Old 09-25-2004
HansH
 
Posts: n/a
Default Re: Disallowing access

"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


  #4 (permalink)  
Old 09-26-2004
Eb
 
Posts: n/a
Default Re: Disallowing access

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.


  #5 (permalink)  
Old 09-26-2004
davek
 
Posts: n/a
Default Re: Disallowing access


"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


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:36 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0