If you are reverse-proxying the camera through Apache or Nginx, add an extra layer of authentication.

Look for a menu labeled:

If you must expose a camera, change its web interface port from 80 to a random high port (e.g., 34567). This reduces automated scanning but does not prevent indexing if linked from another site.