To protect window box plants from extreme temperatures, you can move the window box to a sheltered area, such as a porch or balcony, and provide shade with a light-colored cloth or shade cloth. You can also insulate the window box with bubble wrap or other insulation material. Additionally, you can water the plants regularly to help regulate the temperature.