Valmiki Ramayana Yuddha Kanda Sarga 3 Shloka 17
Original Shlokaत्रायन्तेसङ्क्रमास्तत्रपरसैन्यागतेसति । यन्त्रैस्तैरवकीर्यन्तेपरिखासुसमन्ततः ।।6.3.17।।
1 source checked for this shloka
तत्र: there, परसैन्यागतेसति: when enemy army enters, सङ्क्रमाः road ways, त्रायन्ते: protected, समन्ततः all over, परिखासु: in the moats, तैः those, यन्त्रै: those engines, अपकीर्यन्ते: not possible to cross
"When the enemy arrives, the engines all over the moats lift the bridges making entry impossible for enemy armies."