Forum Moderators: phranque
there is a link to my site on site www.example1.co.uk, and I would like to block people comming form that site.
I did that by putting this in .htaccess:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.example1.co.uk/
RewriteRule /* [mysite.com...] [R,L]
and this was working fine...
now they they have a redirect to a subdomain [bad.example1.co.yu...] and from that subdomain a redirect to my site.
I edited the file to look like this:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.example1.co.uk/
RewriteRule /* [mysite.com...] [R,L]
RewriteCond %{HTTP_REFERER} ^http://bad.example1.co.uk/
RewriteRule /* [mysite.com...] [R,L]
and that was working fine
I have no idea what they have done, but now when I go directly to that subdomain I'm automaticly redirected to my site.
maybee they are using some java script?
How can I block access to my site from the subdomain?
Please halp!
thanks
Rastko
Does anyone know how I can block this form opening my site?
Thanks!
PS any information how to start mastering .htaccess would be very much apriciated. for example what does [R,L] mean, or [R=301,L], and things like that. As I said, I'm a beginner at this, and I would like to learn more. The official apache documentation is kinda confusing for me :) any alternatives?
The source of the web page looks like this:
<html>
<head>
<title>proba</title>
<meta http-equiv="refresh" content="0; url=http://www.mysite/index.php">
</head>
<body>
</body>
</html> So it's just a blak page that automaticly redirect's to my web page.
I have been reading this topic: A Close to perfect .htaccess ban list - Part 2 [webmasterworld.com], found many great things there and tried out many potential solutions for my problem - but nothing works :(
Any ideas?