I know that 4 textures are maximum, but you can use a trick.
For example, you can create a low resolution texture, then you can use detailed meshes (models or other pieces of terrain) with different textures, and insert them in the main terrain.
Furthermore, you can make a simple algorithm to show/hide these pieces of terrain (based on player distance), in order to speed up rendering process.