Ammonia can be an effective spider repellent. Its strong smell can deter spiders from entering homes and other areas. However, it may not necessarily kill spiders on contact. It's best to use a combination of ammonia and other pest control methods to help eliminate spiders from your surroundings.