This is a plugin that will run after a new post is created on the blog (or a page) and will replace a set of keywords by a specified set of links:
Sample similar plugins:
KB linker
SEO smart links
The type of input that would be provided is the following
===============
keyword1|url1, url2 _blank, url3 nofollow
keyword2|url4, url2 _blank, url6
===============
That file would be stored in the plugin directory so it can be copy pasted between different websites
It should have the following settings:
- max. number of links in a post
- limit of links from the same keyword
- Add links in posts
- Add links in pages
- Prevent duplicate links
- Randomize the links
- Ensure that you do not create a link on a pre-existing link
Also, the links will be replaced in the original post (aka hardcoded in). There should be a function that can be run so that it reprocesses all the posts and recreates the links. In order to check if a link was created by us, you can add the attribute "data-clink" or similar alternative methods to know how the link was created.
You must make sure that the target is _blank if it is started in the link and if it's nofollow, you add rel="nofollow"