Re: How to stop webpage forwarding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.zuckerman@xxxxxxxxx> wrote:
On Thu, Sep 17, 2009 at 11:54 AM, Ralf W. <mrsun2001@xxxxxxxx> 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@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>

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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux