Filter sent messages by IP

I'm creating a new MUC service for my company.
It will have a Web front-end (using Muckl), but I want that the "send message" routine pass by a web-service developed by me (using BOSH).
Example:
- user connects in ejabberd (with user/pass)
- user connects in a MUC room
- user can receive messages directly by ejabberd connection
- user send a message to room using a web-service that sends the message to ejabberd.

Is there a way to restrict that only send message operation be restricted to my web-service (by IP of web-server where it be installed)?

Thanks for help

Syndicate content