new function to hash ressource behind url