homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

What is going on?
Referral on wordpress site to webgains - is it hacked?

10+ Year Member

Msg#: 4397741 posted 10:50 am on Dec 14, 2011 (gmt 0)


I've got someone doing some blog posts for me on

When I click on the links in the piece (and other previous posts) although the link and the code looks correct and shows mysitename the user is redirected to webgains.com on some affiliate program tracking ID

Anyone know what might be going on?

We used to have an affiliate program with webgains but that was years ago - is this just a coincidence. (its actually webgains own program ID 117)

Has someone hacked the site and set up a sitewide redirect?

Any ideas - not sure if I can post the actual problem site here.



Msg#: 4397741 posted 1:37 pm on Dec 14, 2011 (gmt 0)

If you have looked at the code for that page and the basic link looks correct, it sounds like you have some javascript catching the click event and doing the redirect.

Looked at the code?


10+ Year Member

Msg#: 4397741 posted 4:50 pm on Dec 14, 2011 (gmt 0)

It was put together by a 3rd party so I haven't looked at the admin side but I have gone through the source code and a number of the javascript, css, and other files that are called and can't find a problem.

But it must be there somewhere. What I'd like to know is how?

Would it have been put in by the person coding it, either unbeknown to him (perhaps using borrowed code) or known and hoping to make money as owner of the click referrals.

I've contacted webgains with the referrer link and the program id etc should shed some light on who the 'click money' would go to. Follow the money...


WebmasterWorld Senior Member sgt_kickaxe us a WebmasterWorld Top Contributor of All Time

Msg#: 4397741 posted 9:49 am on Dec 18, 2011 (gmt 0)

Turn javascript off and try again, my guess is that the even is being redirected. If the link works as intended study the javascript on your site.

Temporarily block the "coder" as well, he may very well know what's going on and profiting, it happens.

It's not a mystery however, the browser is doing as the code instructs, first download a copy of the file from the server and look at that (I've had clients checking their backup files and finding no problems when it was the live files with problems). Perhaps you can paste the link code from that file for us to look at, as well as any javascript files/code on/linked from that page ?


10+ Year Member

Msg#: 4397741 posted 10:16 am on Dec 19, 2011 (gmt 0)

Problem solved.

The site-wide redirects are being inserted by wordpress and operated by viglink.com

I have now found out that Wordpress does have this in its terms and conditions and sometimes operates this referral type thing on sites - but not all sites.

Ok, I have not got a big problem with them inserting some links but the way it was done, I thought the site was hacked. It was so bizarre that the links were referred to a signup for an affiliate program.

The blog has now been moved. So they've lost out by implementing such a ridiculous scheme.

Thanks for all your help. Hope this will also help anyone else who has a similar issue in future.

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved