Yes, it is generally legal to filter HTTPS traffic, as long as you are doing it on a network that you own and manage, and you have the necessary permissions from the users of the network. However, laws can vary by country and region, so it’s always a good idea to check with a legal expert if you’re unsure.