isURLallowed() can be overridden now

#Modificatio: static method of the isURLallowed is called, which allows
user to override the function and design it accordingly