Under would be best. Its a good idea to measure the hottest point in the cage. Even if you think your snake cant get there, it might. You are better off knowing exactly how hot it is in there. That spot could be up to 95º without harming your snake so the substrate will be around 90º.