Best Blackhat Forum

Full Version: How To Prevent and Redirect Bad Backlinks
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Backlinks are everything when it comes to SEO, and unfortunately if at any given time a "bad" backlink appears on Google...there's not really a whole lot we can do about it.

So with that said, here's a little code snippet that will actually redirect a bot back to Google that may be coming in from that "backlink" and in theory disregard it.


Code:
RewriteCond %{HTTP_REFERRER} domainname\.com [NC]RewriteRule (.*) http://www.google.com/ [R=301,L]

***********PLace in your .htaccess file ***********
hi, in theory? can you explain more about. How to know what are the bad links
Hi all. good lucky to you.
thanks, reps given
Thanks
+rep added, please explain a bit.
Thanks Bro +rep
You can also use PHP to do a 301 redirect - which would make it a lot easier if you're dealing with a large amount of URLs that need to be pointed back to Google. Just a suggestion since adding thousands of lines in a .htaccess file can significantly slow down your server. :)
Reference URL's