Prevent clients from using mods on a server

I want to forbid any modded files from a client (xray, other cheats) on my 1.7.10 server. How can I do this?
Is there a way to force a certain texture pack as well, to prevent people from using transparent ones to find ore?
Best Answer
If you want a vanilla server, you cannot prevent cheats. If you use forge / bukkit, you can use NoCheat or similar plugins.
The texturepack part is a bit more technical. The way they work is that minecraft looks for textures inside. For example, if it finds grass.png
(Example), minecraft will replace the original grass texture.
Lets say my texturepack is as follows:
Grass.png
CraftingTable.png
Dirt.png
What happens is that minecraft looks for all textures, and only finds those 3. In the end, you end up with the new Grass, Dirt and Crafting Table. The rest of the blocks are the regular texture. So what you could do is get the "Vanilla Texturepacks" where no textures are changed. Because of the way texturepack sorting works, the server's texturepack is loaded last, overriding the client's texturepack.
Note:
- Use resourcepacks. Texturepacks are outdated.
- This also applies to entites.
- The file names are examples. Do not follow them.
Pictures about "Prevent clients from using mods on a server"



How do you stop mods on a Minecraft server?
How to Disable and Enable Mods on your Minecraft ServerCan servers detect client side mods?
Though servers cannot detect mods directly, they can sometimes detect the effects of them.Does everyone on a server need to download the mods?
On modded servers every player must install the same collection of mods on their client as on the server.Client Mods That I Use
More answers regarding prevent clients from using mods on a server
Answer 2
It is possible to use NoCheat/NoCheat+ to prevent cheating, and Orebfuscator to prevent X-raying; however, to my knowledge there is no way to completely ban all mods.
I don't think it's possible to force a certain texture pack.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Monstera, Charlotte May, Andrea Piacquadio, Andrea Piacquadio