Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

What is going on?

Referral on wordpress site to webgains - is it hacked?

10:50 am on Dec 14, 2011 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 28, 2005
posts: 164
votes: 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.
1:37 pm on Dec 14, 2011 (gmt 0)

Junior Member

joined:Dec 1, 2011
posts: 192
votes: 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?
4:50 pm on Dec 14, 2011 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 28, 2005
posts: 164
votes: 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...
9:49 am on Dec 18, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member sgt_kickaxe is a WebmasterWorld Top Contributor of All Time 5+ Year Member

joined:Apr 14, 2010
votes: 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:16 am on Dec 19, 2011 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 28, 2005
posts: 164
votes: 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.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members