How to stop webpage forwarding

How to stop webpage forwarding

am 17.09.2009 20:54:16 von Ralf Wiegand

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 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: How to stop webpage forwarding

am 17.09.2009 20:59:58 von Jonathan Zuckerman

On Thu, Sep 17, 2009 at 11:54 AM, Ralf W. wrote:
> Hello group - I have found that somebody is pointing there webpage (domai=
nname) 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 for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.or=
g
> 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 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: How to stop webpage forwarding

am 21.09.2009 08:34:22 von Igor Cicimov

--000e0cd23da6143fa0047410ac52
Content-Type: text/plain; charset=ISO-8859-1

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
wrote:

> On Thu, Sep 17, 2009 at 11:54 AM, Ralf W. 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 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 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
>
>

--000e0cd23da6143fa0047410ac52
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

You can use mod_rewrite. You can create the rule per your requirements. Som=
e possibilities:

1. Forbid the access if the request is not coming f=
rom your own domain

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %=
{HTTP_REFERER} !^(www\.)?$<=
br>
RewriteRule .* - [F]

2. Send it back from where it came from

=
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^(www\.)? href=3D"http://mydomain.com">mydomain.com$

RewriteRule .* %1 [R,L]

Cheers

On =
Fri, Sep 18, 2009 at 4:59 AM, Jonathan Zuckerman < ref=3D"mailto:j.zuckerman@gmail.com">j.zuckerman@gmail.com> w=
rote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<=
div class=3D"h5">On Thu, Sep 17, 2009 at 11:54 AM, Ralf W. < ailto:mrsun2001@yahoo.de">mrsun2001@yahoo.de> wrote:


> Hello group - I have found that somebody is pointing there webpage (do=
mainname) to my own webpage. =A0How can I prevent his?

>

> Thank you

> Ralf

>

>

>

>

>

> ------------------------------------------------------------ ---------<=
br>
> The official User-To-User support forum of the Apache HTTP Server Proj=
ect.

> See <URL: =3D"_blank">http://httpd.apache.org/userslist.html> for more info. r>
> To unsubscribe, e-mail: he.org">users-unsubscribe@httpd.apache.org

> =A0 " =A0 from the digest: ribe@httpd.apache.org">users-digest-unsubscribe@httpd.apache .org

> For additional commands, e-mail: ache.org">users-help@httpd.apache.org

>

>



We had this issue at my previous employer... our attitude was s=
imply,

thanks for the free domain name. =A0If they truly point their domain to

your server, they have no control over the content. =A0You 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.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g">users-unsubscribe@httpd.apache.org

=A0 " =A0 from the digest: @httpd.apache.org">users-digest-unsubscribe@httpd.apache.org

For additional commands, e-mail: org">users-help@httpd.apache.org






--000e0cd23da6143fa0047410ac52--