URL Hijack by Spam Trackback through 302 Redirection in WordPress


URL Hijack by Spam Trackbacks through 302 Redirection in WordPress is getting a very popular method nowadays again. The major target are blogs with >80 % traffic from Google Search Engines.

 

What is this URL Hijack is?

 

People will arrive to your webpage by any means (suppose from the Google Search Result pages); after few seconds will be redirected to the spammer / hacker’s own webpage.

 

What is 302 and 301 redirection?

 

To redirect a page, multiple methods can be used.

Well recognized for redirections are status codes 301 and 302. 301 redirect is permanent redirection ( that is content moved from one domain to another permanently).

The 302 redirect is temporary redirection; the main page remains valid to Google Search. Obviously, The effect of the two redirections are also different to the search engine.

 

How URL Hijack is performed using spam Trackbacks?

 

How URL Hijacking can happen, was written by Joost de Valk in Yoast in two years ago:

 

This is were, in my opinion, WordPress goes wrong, as that redirect is a 302 redirect. On line 65 of wp-trackback., it says the following:
wp_redirect(get_permalink($tb_id));

So it uses the function wp_redirect to redirect you back to the original post. This function lives in wp-includes/pluggable.php, and by default, sends a 302 redirect. You can make it send a 301 redirect by simply changing the code to:
wp_redirect(get_permalink($tb_id),301);

 

We will not discuss on how URL Hijack is actually done by using which line of code. This post will be exploited to use by the hackers for URL Hijack, who are still not aware of the method.

 

How to prevent URL Hijack by spam trackbacks in WordPress blog?

 

  • Use Disallow Tracbacks, Comments, Comment feeds from Robots.txt. We wrote ago about using Robots.txtURL Hijack by Spam Trackback perfectly in post to fight duplicate content issue.
  • Use Ultimate Security Check like plugins to check other security loop holes.
  • Use Exploit Scanner like to check if your WordPress theme has any problem itself.
  • Always manually check who is actually giving the link that you are getting as a Trackback. This is what we suggest to do to prevent URL Hijack or allowing spam trackbacks.
  • Copy paste the URL of the trackback (if suspicious) to any text Editor to see what it looks like. Simply delete the URL and allow Trackback / delete it if you guess anything suspicious.
  • Never use “ Themes” ; other than illegal it can itself inject codes to facilitate the URL Hijack. We recommend using good themes or if you do not afford, use official themes from WordPress as scaffold and create your own Child Theme.
  • Certain plugins can do this URL Hijack, try not to download WordPress plugins outside of WordPress repositary.
  • Update WordPress and plugins regularly to prevent URL Hijack.

 


Other methods of URL Hijack

 

  • Manipulating the .htaccess file : hacker needs access to the root. Difficult task for the hacker to exploit for doing a URL Hijack as it is almost impossible to gain access with a good setup. But this is very effective for doing the URL Hijack  : visitor will practically not notice the redirection; everything will happen instantaneously.
  • Malicious Java Scripts of bad Advertisers. We can just say, these Advertisers do not perform any URL hijack through advertising: Google Adsense, Adbrite, LakeQuincy Media, Technorati Media, Tribal Fusion, Chitika. For all others, be cautious, we have not tested. We discovered 3 (till now) who do these.

 

Signature


Incoming search terms:

{redirect server url} trackback,wordpress redirection hijack,how to remove 302 redirect from wordpress,redirect server url trackback
0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
About Abhishek

Abhishek Ghosh is an Orthopedic Surgeon, Inventor with 216 Patents, Current editor of The Customize Windows Media Group. You can follow and know more about Dr. +Abhishek Ghosh on Google Plus and follow on Twitter as @AbhishekCTRL.

Comments

  1. Bitvisitor says:

    always i used to read smaller posts that as well clear their motive, and that is also happening with this post which I am reading here.

  2. pixelrents.com says:

    Amazing blog! Is your theme custom made or did you download it from somewhere?

    A theme like yours with a few simple adjustements would really make my blog stand out.
    Please let me know where you got your design. Cheers

    • This is custom designed theme. The designers are of our company. If you are interested to get quote, please use the contact us form (link at bottom of every page). We will change the theme, so you can grab it as sole license holder.

  3. wordpress ecommerce says:

    all the time i used to read smaller articles or reviews that also clear their motive, and that
    is also happening with this piece of writing which I am reading
    here.

  4. หมอยันฮี says:

    Good article. I’m facing many of these issues as well..

  5. Thanks a lot :)

Trackbacks

  1. URL Hijack by Spam Trackback through 302 Redirection in Wordpress « Wordpress Blog Gallery says:

    [...] URL Hijack by Spam Trackback through 302 Redirection in WordPress [...]

  2. I’m definitely {enjoying|loving} the information…

    Hey! Someone in my Myspace group shared this website with us so I came to take a look. I’m definitely enjoying the information. I’m bookmarking and will be tweeting this to my followers! Exceptional blog and superb design and style….

  3. [...] Almost all of us receive Spam Trackbacks. Most are caught by Akismet. But not every Spam Trackback is caught. There is definite risk of URL Hijack by Spam Trackback as written in the old article. [...]

Speak Your Mind

*