thewiz, could you post a sample gallery where you get that error?
As far as I know, if the gallery is redirecting like below, you shall have to add the domain to the whitelist.
Code:
http://www.domain.com/gallery/?nats=thewiz.1.2.3.4.5
Code:
http://gallery.domain.com/format/title/index.php?nats=thewiz.1.2.3.4.5