"I was thinking about a cure for malaria, when I came up with this idea; what if you create a fine nylon net that you swallow. It would have to have a semi-ridget skeleton type structure to keep it expanded.. The worms being filamentous could easily get caught up in the net. After a few days, you would expell this thing with all the worms."
Nope, but
Malaria is a microscopic parasite that enters the host’s blood and festers in the liver. What you are describing would not apply to this parasite.
However, monkeys and apes are known to use certain types of leaves to treat parasite infestations. They curl the leaves up and swallow them whole- in order to dislodge enough parasites so that the immune has a fighting chance.