WP XSS Reciprocal Links with Relevant Anchor Text

Here you go. A simple, little hack to get reciprocal links to all your blog pages via XSS link-injection.

Simply add the code below to the sidebar.php/single.php/footer.php file of your WP blogs.

WP has screwed-up the code, so I’ve placed it in a zipped text file: http://www.contentgeneration.org/xsslink.zip

13

Mike says:
Nov 15, 2007 - 07:11:46

So what exactly does it do beside sitting in your blog’s footer?

Sorry if it’s not so obvious to me.

Brad says:
Nov 16, 2007 - 08:11:21

Answer: “A simple, little hack to get reciprocal links to all your blog pages via XSS link-injection.”

acco says:
Nov 18, 2007 - 02:11:42

Sorry for my noob
I got this error, placed the code on my footer

Parse error: syntax error, unexpected ‘

Nov 18, 2007 - 08:11:47

Interesting. I’ll check it out. Thanks.

discodog says:
Dec 17, 2007 - 12:12:13

Hi Brad,
thx for the trick:D
Does it work only with WP or can i use it with joomla to( marvelous for white seo with hacks)

Dav says:
Dec 21, 2007 - 04:12:33

I too get a parse error as well. I also placed it in my footer.php. Any help here for this?

Dave says:
Dec 21, 2007 - 05:12:29

I’m guessing that some characters were mangled during cutting and pasting this snippet. I ran the code thru an online syntax checker and its not fond of the “‘ near the end of the snippet. Of course, I’m not that certain what I just typed will show up properly either.

Brad says:
Dec 21, 2007 - 05:12:59

Dave, yep! I’ve zipped it in a text file, above.

Dave says:
Dec 21, 2007 - 05:12:55

Much thanks Brad for the correction!

A couple of interesting things though. I thought it best for testing purposes to fool around with this by editing single.php on a very lightly trafficked blog of mine.

First off, in Firefox this appears to render differently. In Ff you do not get a live link at the bottom of the post. What is actually seen is this:

one of these guys: ‘
then a “close tag” symbol, which I can’t type
and the word “link”, without the quotes

And the word “link” is not clickable.

In IE7, this renders the same way, BUT all of those characters are clickable. Ff tries hard to let you know what is going wrong if you View Source.

I guess clicking this is supposed to generate a permanent link in the target page’s acronym list, but I didn’t see that happen.

Brad says:
Dec 21, 2007 - 06:12:47

Dave, it works fine in IE and FF. Click ‘link’ top right of this blog, for an example.

discodog says:
Dec 28, 2007 - 05:12:40

the tips works nice now but it seems the .gouv website is down…
How make it work with another TR juicy website?:)

discodog says:
Dec 28, 2007 - 05:12:11

it works with this website! ;D

ID) . “>” . $post->post_title . “‘>link“; ?>

Michael Sherriff says:
Jan 23, 2010 - 04:01:05

@ Dave - At first I had the same prob as you and couldn’t work out what was wrong. Then I changed the last part of the code and replaced this part

post_title . “‘>link“; ?>

Change the last part of your code with the above - it worked for me.

I added this to my sidebar - when I view the home page of my blog where it shows all of the posts together the code just displays the word LINK and is not clickable but whe n I view the actual post the word LINK becomes clickable.

@Brad - I have one question (which prob sounds real noob) When I follow the link from my blog post to the .gov site I see it has indeed injected text on to their page but that text isn’t clickable. Is that the right or should that text be a hyperlink?

*
To prove you're a person (and not a spam bot - although we do like cute bots round here), type the security word shown in the picture.
Anti-Spam Image