Wooden shelf posts in basement vs termites and mold

I am in the process of building a series of wooden storage shelves in my basement, but I want to make sure I am not at risk for termites or mold. I will probably be putting these on a plain concrete floor, but there is a possibility that I will build shelves in the dirt floor coal bin area.

I plan on putting flashing under each post (a 2x3), as well as painting an epoxy up some length of each post to help waterproof it. I also run a dehumidifer.

There is only one area of termite damage in the house, and that was around a transom window that was enclosed some time ago, probably the 1950’s.

Is this overkill, or not enough? Can I get away with putting the posts naked on the concrete and/or dirt floor, or do I need to do the epoxy+flashing, or just epoxy, or some other type of support (like bricks)?

Are there any other risks I should be aware of, especially in regards to putting wooden posts directly on a dirt floor?

you can use treated wood for the posts, use treated wood for the lower few inches of the post, place the posts on a pad of treated wood. you could use a piece of rubber or plastic under the posts. wood in contact with a concrete floor is the same as dirt for moisture purposes.

you want the floor stable under the post; loose dirt removed and the dirt tamped hard. if in dirt you could take a brick (or half a brick) and bury it with the top just a bit above dirt level, for moisture purposes the brick is as wet as the dirt.

leaving unpainted will allow the wood to stay as dry as the basement environment, painting could trap moisture and lead to rot.