Hi Vaibhav,
another idea (although this may be "shooting sparrows with a cannon"... ):
If UCON is installed on the SAP system, you could define an access rule like "function module XYZ is allowed to be called only from system ABC". Then it can't be called from other SAP systems or from external programs.
Regards, Ulrich