A hair drug test can detect certain drugs up to 90 after use. Therefore, the only effective way is to stop using drugs for an extended period. However, some people try using detox shampoos or hair treatments that may not always be effective.