Update index.php

Added whitelist and blacklist configurations and behavior