We numerically find that higher privacy and security in all-optical chaos-based communication systems can be achieved when the closed-loop scheme is used in the receiver architecture, instead of the more traditional open-loop scheme. Our results show that the extraction of the encoded message demands a larger amplitude of the message when the open-loop receiver is used than when the closed loop is implemented. A large amplitude of the encoded message compromises the performance and security of the system.