Pull out and secure the door jamb switches that activate the lights: To stop your courtesy light coming on, you can simply disable any of the little "push buttons" hidden within the holes located around the door jamb of an opened car door to stop activating lights from shining on interior of car by disengaging the spring button attached to them. Use pliers for more efficient prying to prevent accidental damaging parts around these mechanisms by pulling them to release. If you choose to tape around this button or use other adhesives that will eventually lose adhesive power, take note to periodically check around this mechanism if it has given way by time to prevent accidental light shinning.
It's important to check with your local regulations and vehicle requirements before making any modifications to your car's lighting system