You can use mod_rewrite. You can create the rule per your requirements. Some
possibilities:
1. Forbid the access if the request is not coming from your own domain
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^(www\.)?mydomain.com$
RewriteRule .* - [F]
2. Send it back from where it came from
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^(www\.)?mydomain.com$
RewriteRule .* %1 [R,L]
Cheers
On Fri, Sep 18, 2009 at 4:59 AM, Jonathan Zuckerman
<[email protected]>wrote:
> On Thu, Sep 17, 2009 at 11:54 AM, Ralf W. <[email protected]> wrote:
> > Hello group - I have found that somebody is pointing there webpage
> (domainname) to my own webpage. How can I prevent his?
> >
> > Thank you
> > Ralf
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: [email protected]
> > " from the digest: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
> We had this issue at my previous employer... our attitude was simply,
> thanks for the free domain name. If they truly point their domain to
> your server, they have no control over the content. You could easily
> make special rules in your .htaccess to examine the server's
> environment variables and change behavior depending on it, but first
> ask yourself, what do you gain?
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [email protected]
> " from the digest: [email protected]
> For additional commands, e-mail: [email protected]
>
>