Legitimate Porn Plugins

That’s a catchy title!

I was playing with WP Plugin Directory Slurper and grep, tyring to get a grasp on how everything works. When I do that, I like to search for things like ‘laptop.com’ or ‘base64′ and see if there are legit reasons to use them. This time I searched for ‘porn’.

The command I use is this:

grep -R "porn" ~/Development/WP-Plugin-Dir/* > porn.txt

It’s not the most efficient, but it dumps a file called porn.txt that I then pop open in a text editor and study. That spits me out with lines like this: ~/Development/WP-Plugin-Dir/plugins/add-nofollow-links/Add-Nofollow-Links-Plugin/add-nofollow.php:"freeporn-mpegs.com", all through it.

So I go and open up the file and I see that this one “Add Nofollow searches for links to large websites that use the ‘nofollow’ tags for external links, and puts the same tag on your links to those sites.” Then in the plugin there’s a function with a metric ton of links (which is inefficient as all heck, but we’ll let that go) and then some filters:

// filters have high priority to make sure that any markup plugins like Textile or Markdown have already created the HTML links
add_filter('the_content', 'wp_add_nofollow', 999);
add_filter('the_excerpt', 'wp_add_nofollow', 999);

// delete this one if you don't want it run on comments
add_filter('comment_text', 'wp_add_nofollow', 999);
//add_filter('get_comment_author_link', 'wp_add_nofollow', 999);

Now that’s a totally legit reason to have a porn link in your plugin! 1 Still, this plugin checks your posts and excerpts and comments for ‘bad links’ and if found, sets them no-follow to prevent link juice from being passed on. That’s good, though comments are already set nofollow so that’s overkill. Still, clearly we have already found reasons why ‘porn’ is okay in a plugin.

My search went on and I found that non-English languages would set it off. Like “Podporná stránka” and 'Session support must be enabled.' => 'Sesiunile trebuie să fie pornite.' So there was a lot of chaff. Also a lot of plugins include it in their ‘bad words’ list, or to tell you that Adsense doesn’t allow porn sites, which is pretty understanding.

But then you get something like Post2Peer Widget which has a checkbox to select if you want it to scan porn sites for related posts. This is all above board, however, and open, so it too is acceptable. Weird, but then again we have My Videotag which implements “Tag “Video” in posts and comments which automatically identifies videos from sites like: youtube, googlevideo, dailymotion, etc..” Or rather it lets you embed video from more sites. Including porn sites. Again above board! We also have WP Simple Sex-Positive Glossary which … does what you think it does. Dr. Ruth would approve.

So as you can see, you can’t always judge a plugin by it’s content, you have to read the context too.

About these ads

Notes:

  1. Ironically enough, it also had a forward facing link in the footer, so I reported it to the plugin repo folks. Ditto it’s friend, “Nofollow Reciprocity” which did the same thing. They’re both being addressed now.
StudioPress Theme of the Month
Half-Elf? Try Half OFF WordPress ebooks!