What is the difference between a MIDI controller and a normal MIDI device?
If you mean only sending note on/off messages then there are plenty of ways to do this in Logic. Head to the environment (command + eight) and program a transformer. It sounds like you may want to read up on what MIDI is.
If you don’t want it to send midi controllers at all, then just unplug it. If you do want to send some cc’s but not all, then program a transformer in logic’s environment.