You could try using bitter apple spray I heard it doesn't work very good on dogs, but that it works great on rodents.

I'm not sure if this is good for hamsters, or if it will distract them from the bars, but my rats just LOVE dentabones. They also love rawhide.

Welcome to Pet Talk!