This script will ban all fake SegShit8x nodes. The list of nodes is obtained from bitnodes.21.co.
You need jq (https://stedolan.github.io/jq/) to parse the json.
Download the script:
git clone https://github.com/mariodian/ban-segshit8x-nodes.git
Run:
cd ban-segshit8x-nodes
chmod u+x ban.sh
./ban.sh