Default maven repositories for deployment to artifactory

I need to deploy my project to artifactory only, which requires credentials. Is there a way to ensure that maven repositories downloaded from the internet are disabled by default and only the password should be allowed? I could encrypt them, but I prefer not to do so.


Found this in the documentation for Nexus:

When adding your password to the environment variables of the UNIX 50e0806aeb derwwil