When we clean WordPress sites, infected posts and pages occur most of times. This way hackers build links and articles to non-relevant sites: pills, replica products, essay writing, etc ( SEO spam ).
There are two types of injections:
- Repetitive strings which can be replaced easily using a search & replace script. Example:
- Strings which differ from one post to another by few characters – making more difficult to apply search and replace technique. Example:
Tools for search and replace:
Notepad++ ( good for database cleanup ): https://notepad-plus-plus.org/
Better search & replace: https://wordpress.org/plugins/better-search-replace/
Search Replace DB ( WordPress admin access not needed ): https://interconnectit.com/products/search-and-replace-for-wordpress-databases/