One of my competitor redirect my site to their own site.I need .ht access code to block that.SO,that no one can redirect my site.
Asked
Active
Viewed 382 times
-1
-
I think redirection is not possible without editing in code. tell us the condition in which your site is redirecting. – urfusion Oct 03 '15 at 08:43
-
my competitor redirect the site through cpanel – Suruchi Shobha Oct 03 '15 at 10:54
-
I tried RewriteEngine on # Options +FollowSymlinks RewriteCond %{HTTP_REFERER} badsite\.com [NC] RewriteRule .* - [F] BUT it's not working – Suruchi Shobha Oct 03 '15 at 10:59
-
how can they have access of your cpanel. if they have change the details ASAP. and check for redirection in cpanel – urfusion Oct 03 '15 at 11:05
-
do you have cpanel details? – urfusion Oct 03 '15 at 11:21
-
no,they reditect their own site to my site – Suruchi Shobha Oct 03 '15 at 11:33
-
Suppose my site is abc.com and my competitor site xyz.com.When I click on xyz.com, my site is open – Suruchi Shobha Oct 03 '15 at 11:34
-
I think no harm for you in this conditions . – urfusion Oct 03 '15 at 11:35
-
It will goes down my ranking – Suruchi Shobha Oct 03 '15 at 11:35
-
is there any htaccess code to block such type of work – Suruchi Shobha Oct 03 '15 at 11:36
-
try this for generating http://incredibill.me/htaccess-block-referer – urfusion Oct 03 '15 at 11:36
-
# BLOCK SITE REFERRERS RewriteEngine on RewriteCond %{HTTP_REFERER} lilacs\.biz [NC] RewriteRule .* - [F] not working.my site is thirdeyewebdesign.in – Suruchi Shobha Oct 03 '15 at 11:44
-
is my updated answer is working for you? – urfusion Oct 03 '15 at 11:45
-
# BLOCK SITE REFERRERS RewriteEngine on RewriteCond %{HTTP_REFERER} lilacs\.biz [NC,OR] RewriteCond %{HTTP_REFERER} www\.lilacs\.biz [NC,OR] RewriteCond %{HTTP_REFERER} http\://lilacs\.biz [NC,OR] RewriteCond %{HTTP_REFERER} http\://www\.lilacs\.biz [NC] RewriteRule .* - [F] it's not working – Suruchi Shobha Oct 03 '15 at 11:54
-
check your server for htaceess, is it enable or not? – urfusion Oct 03 '15 at 11:56
-
http://stackoverflow.com/questions/4709893/htaccess-not-working-in-server – urfusion Oct 03 '15 at 12:12
-
pls give me your contact number.I hv sent you message on facebook – Suruchi Shobha Oct 03 '15 at 13:29
1 Answers
0
as per your comments I think your website is redirecting by the cpanel option redirects
.
check this option. redirecting might be due to this.
no htaccess
will work in this condition.
Update
for htacccess
# BLOCK SITE REFERRERS
RewriteEngine on
RewriteCond %{HTTP_REFERER} badsite\.com [NC,OR]
RewriteCond %{HTTP_REFERER} www\.badsite\.com [NC,OR]
RewriteCond %{HTTP_REFERER} http\://badsite\.com [NC,OR]
RewriteCond %{HTTP_REFERER} http\://www\.badsite\.com [NC]
RewriteRule .* - [F]
I also suggest you to change the login details of your cpanel ASAP

urfusion
- 5,528
- 5
- 50
- 87