For people who say not to boycott Israel within its legitimate boundaries would you have also supported not sanctioning South African apartheid since south African apartheid was also within legitimate boundaries of 1 ?

Some argue that the scope of BDS is too indiscriminate, and that we should focus our attention instead on the illegal Israeli settlements themselves, rather than Israel. There are multiple issues with this line of thought; most glaring of which is that settlements and other illegal policies are not self-perpetrating, and neither are they occurring in a vacuum. Settlements need to be built, maintained, protected, developed, and all this is performed gleefully by Israel, which has always sought to maximize its land-grabs.
Israel actively incentivises the transfer of its population into the settlements by declaring them “National Priority areas”, meaning that they are the recipients of generous state subsidies in multiple areas, such as housing and education. Furthermore, Israel’s violations of international law are not related only to the areas it occupied in the 1967 war, but to the entirety of the land it controls, including inside the green line.
However, even if you were to remain unconvinced by this, this type of targeted boycott is unfeasible for practical reasons as well. From a distance, looking at static maps it might appear that the green line neatly dissects Palestine into 1948 and 1967 territories, on the ground the green line simply does not exist for Israelis. Hundreds of thousands of settlers commute to work every day over the green line, and it is not a factor in everyday Israeli life. For all intents and purposes the settlements are part of Israel, and not a neat separate entity that can be easily singled out for boycotts.