Forum Moderators: phranque

Message Too Old, No Replies

How to block a redirect to my site?

beginner needs help

         

rastkov

8:56 pm on Jun 19, 2005 (gmt 0)

10+ Year Member



Hi!
I just started learning about the .htaccess file and I didn't menage to understand alot. I have been trying to find the solution to my problem for a while now but with no luck. I'm sorry if this is a re-post!

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

rastkov

9:55 pm on Jun 19, 2005 (gmt 0)

10+ Year Member



I just found out that the site is using a java script that looks like this:
<script language="javascript">
location.href="http://www.mysite.com/index.php";
</script>

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?

rastkov

12:32 pm on Jun 20, 2005 (gmt 0)

10+ Year Member



I'm sorry for the previous post - it's not a java script, it's
<meta http-equiv="refresh" content="0; url=http://www.mysite.com/index.php">

I have read a lot ot topics here, but just couldn't find anything that works for me. I just have no idea how to block that

any ideas?

Thanks!

curlykarl

1:13 pm on Jun 20, 2005 (gmt 0)

10+ Year Member



Hello,

Have you tried adding this to your .htaccess file.

<Limit GET HEAD POST>
order allow,deny
deny from .example1.co.uk
allow from all
</LIMIT>

rastkov

2:10 pm on Jun 20, 2005 (gmt 0)

10+ Year Member



Hi
I have tried with <Limit GET HEAD POST> </LIMIT> and it didn't work.

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?

curlykarl

4:07 pm on Jun 20, 2005 (gmt 0)

10+ Year Member



Hi,

I have stickied you a link to a page with the info on, as we are not allowed url's here.

HTH

Karl :)

rastkov

4:47 pm on Jun 20, 2005 (gmt 0)

10+ Year Member



Thanks for the help Karl, but it didn't work :(

kwasher

4:58 pm on Jun 20, 2005 (gmt 0)

10+ Year Member



Hey Claus (wherever you are), isnt this an attempt at Googlejacking?

jdMorgan

4:36 pm on Jul 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There's no way to be sure that an access is the result of a redirect on another site, and therefore no way to block such accesses. :(

Jim