Restrict access to pihole

As you mentioned, I created the file external.conf and entered the code and restarted lighttpd but still I can access web ui from all the clients