If a Jew owns a vending machine, and most of its users are Jewish, he must disable it for Shabbat in order to avoid aiding their desecration of Shabbat. If most of the customers are non-Jews, he need not disable it (see SSK 29:28-29 and n. 75). The money that the non-Jews put in the vending machine is not considered payment for work done on Shabbat, since they are paying primarily for the product and not to operate the machine itself.
Some maintain that websites designed for a Jewish audience must be disabled on Shabbat so that they do not aid transgression. Since this is difficult practically, the site owner is not obligated to take them down; after all, the site visitors can easily desecrate Shabbat by visiting other sites, and as long as the site owner has done nothing to promote his site on Shabbat, there is no prohibition. However, if the site is primarily commercial, and most prospective customers are Jews, it means that the owner of the site benefits from the Shabbat activity, so he must make efforts to disable it for Shabbat. If this is very difficult, it is not obligatory. Since those who access the site are already desecrating Shabbat knowingly and regularly, some maintain that the prohibition of aiding someone’s transgression does not apply. In contrast, if most of the customers are non-Jews, it is not necessary to disable the website for Shabbat. The purchases made on Shabbat are not considered payment for work done on Shabbat since the work to set up the site was done during the week.