BEIJING—Apple’s AirDrop and similar file-sharing programs that were used by protesters in China and Hong Kong in recent years face tighter controls under rules proposed by Beijing, the latest communications technology to fall foul of a broadening national-security clampdown.