restricting input based on src