nukethewhales

Most of you have a shit ISP that overcharges you for unreliable service and can’t do shit about it because that company either has a micromonopoly in your region or because they are considered the “least worst” of your “options”. What you may not realize is that the same shit company is also making serious bank off those stupid 404-jacking pages they send you half the time instead of the local site’s. They sell these huge data streams of their customers 404′d requests to domain squatting types so that you’re guaranteed to get an MFA when you type in http://www.yxhoo.com/ or the like.

Anyhoo… my ISP’s awesome dev dept conveniently forgot to ensure the opt out feature worked prior to launch. And for the record, I’d be perfectly happy with the ads and personal information leaks if they would charge less or at least provide me with the level of service I pay for.

Now, will someone tell me why ebay is still buying ads for everything? I thought they filtered out “Nukes” and other nefarious keywords long ago.

So yeah, nofollow doesn’t work like it used to. Your only options if you care about PR leaks are to either remove the links or to just ignore it. I’ll show you how you can unlink all external links on your WP blog using a regex and John Godley’s Search Unleashed plugin.

First, you want to prevent new urls from being posted. You’ll need to do a couple of theme edits.
Remove Comment Links in WordPress:

Edit Theme > comments.php ; Remove the url form:

            <div class="form-label"><label for="url">< ?php _e('Website', 'sandbox') ?></label></div>
            <div class="form-input"><input id="url" name="url" type="text" value="<?php echo $comment_author_url ?/>" maxlength="50" tabindex="5" /></div>

Use search regex plugin to remove the link:

http://wordpress.org/extend/plugins/search-regex/

To remove all commentluv links from comments:

(.*last blog post.*)

Remove all http links:

(http.*)

Remove only the link:

(<a href.*">)
(</a>)

Unlink “a class” links:

(<a class.*">(.*?)</a>)

replace with $1

Unlink “a href” links with their url target as quoted plaintext (without killing image links):

(<a \s+(?:(?:\w+\s*=\s*)(?:\w+|"[^"]*"|'[^']*'))*?\s*href\s*=\s*(?<url>\w+|"[^"]*"|'[^']*')(?:(?:\s+\w+\s*=\s*)(?:\w+|"[^"]*"|'[^']*'))*?>[^< ]+</a>)
</a>

replace with $1

Unlink everything including images:

(<a [\s]+[^>]*?href[\s]?=[\s\"']*(.*?)[\"']*.*?>([^< ]+|.*?)?<\/a>)
</a>

replace with $2

© 2010 nukeitdotorg Suffusion WordPress theme by Sayontan Sinha