That's a separate fallacy called "appeal to authority".
One of the most common uses of this fallacy I see on FR is those who discard any evidence provided from a source they dont like, such as Wikipedia or Snopes.
This one is "appeal to motive", slightly more specific than "ad hominem". Appeal to motive, while a fallacy, can still be useful because it notes that the source can be considered suspect, therefore data from that source should be treated with caution unless/until it is independently verified.
Good for any source, of course, but degree of caution should increase as the known degree of reliability of the source goes down.