In most regions, there are no regulations making the headlights illegal. So you are free to tape your motorcycle headlight as long as it is not too obstructive. There are regulations on the lights though. Most regulations expect the headlight to light up at least 100 feet in speed. So be mindful of that.