Steal SEO ranking of others

Get rid of blackhat SEO and prevent stealing your good SEO rank

Review this post.
User Review
5 (3 votes)

Are you worried about blackhat SEO and want to prevent stealing your good SEO rank?

Dear all here I will show the process of blackhat SEO and how to steal other’s good SEO rank how hackers do, So that you can prevent yourself from this attack. Nowadays it is very common for SEO hack and many good SEO ranking sites to lose their ranking silently this way. So this process with show you two things at a time. One is how the hackers destroy other site’s SEO and another one is how they do blackhat SEO. The process is shown herein only for educational and awareness purposes, if you use it with bad intention then the writer of the owner of the site will not be reliable. Here I will use a PHP script to crawl the target site’s script and will use that in my server for duplicate content. Thus I will get the meta content and meta description also from the target site. Even all updated content every time. So I am giving a script below for total understanding. I have used the PHP curl function to do things successfully.

Hackers Blackhat SEO script sample



$route = '';
if ( !empty ($_GET['route'] ) ) {
$route = (string) filter_var( $_GET['route'], FILTER_SANITIZE_STRING );

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => ''. $route . '/',
CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20080311 Firefox/'
$data = curl_exec( $curl );
curl_close ( $curl );
if ( false !== $data ) {
if ( preg_match_all( '@src=([\'"])(.*)([\'"])@', $data, $m)) {
foreach ($m[2] as $item) {
if ( substr( $item, 0, 2) == '..') {
$data = str_replace( $item, ' ' . substr( $item, 2), $data);
if (substr( $item, 0, 2) == '//' || substr( $item, 0, 4) == 'http') {
$data = str_replace($item,' ' . ltrim( $item, '/'), $data);
if ( preg_match_all( '@<link[^>]*href="([^"]*\.css)"[^>]*>@', $data, $m)) {
foreach ($m[1] as $item) {
if (substr( $item, 0, 4) == 'http' || substr($item, 0, 1) == '#') {
$data = str_replace($item, " $item", $data);
echo $data;


You have to run this code on your server. In the case of variable $route = you have to use the target website name. And then you have to run this code from your server. So then you do not need to do any SEO, but your domain will get ranking for the duplicate content and maintained meta tags and meta description.

If you run this code from your server it will look the same as the target site with a different domain. You have to run this code for many days to get a ranking. Because SEO ranks grew up gradually and depend on visitors search.

Assume that in the space of $route = variable I put name and then ran it in my localhost and that looks like below.


How to hijack SEO ranking

SEO hijacking Script


I used a fake user agent to send the request as real.

So if you use my site instead of a yahoo name like $route = ‘’ you will see a blank page. Because of security. My site can detect fake user-agent and not allow to crawl.

Prevention process of Blackhat SEO Solution & stop stealing your good SEO rank.

If you are the victim of SEO hijack and duplicate copy you may use this solution of user-agent checking and you may use sucuri or Cloudflare web-application-firewall. Otherwise, you may block those IP in your .htaccess but if the hacker use any firewall and you do not know the actual real IP of that site then blocking IP.

The best tip is always to use the google search console and keep your eyes open on outbound links and inbound links. Then, use google analytics to keep track of your visitors.