You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Ralf W." <mr...@yahoo.de> on 2009/09/17 20:54:16 UTC

[users@httpd] How to stop webpage forwarding

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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] How to stop webpage forwarding

Posted by Igor Cicimov <ic...@gmail.com>.
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
<j....@gmail.com>wrote:

> On Thu, Sep 17, 2009 at 11:54 AM, Ralf W. <mr...@yahoo.de> 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: users-unsubscribe@httpd.apache.org
> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
>
> 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: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] How to stop webpage forwarding

Posted by Jonathan Zuckerman <j....@gmail.com>.
On Thu, Sep 17, 2009 at 11:54 AM, Ralf W. <mr...@yahoo.de> 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: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org