I work as a computer engineer in a programming company that belongs to Christians. The company has started designing websites for wine shops and factories. There is no programming work required, it is all about web designing so far. But it is very possible that they will require programming work. I have left the company to save myself from this doubtful matter. But there are Muslims working in this company and they refuse to leave it. What is the ruling in this situation?.
If the programming work is limited to that which is permissible, and has nothing to do with the haraam sites such as sites for selling or manufacturing alcohol, then there is nothing wrong with staying in this job. It comes under the heading of payment for permissible work done for one who is committing a haraam action, like working for one who deals in riba or drinks alcohol and so on. It is well known that the basic principle is that this interaction is permissible, so long as it is not helping in doing the haraam action. Some of the companions of the Prophet (peace and blessings of Allaah be upon him) worked for the Jews, even though it was well known that they dealt in riba and consumed haraam wealth.
But it is makrooh to deal with those whose wealth is mixed, and you have done well to leave this company. We ask Allaah to compensate you with something better.
If the work in programming and the work in designing websites for advertising alcohol or other haraam things is mixed, then it becomes obligatory for you to leave this job, because it is not permissible to deal directly with haraam things or help with them.
See question no. 31781.
And Allaah knows best.