Amazon, Walmart foiled by new rules