Their anti-hack system 98% of it is inside the swf 2 % of it is on the server. Seeing that Battle Pirates is a browser based game they have no choice but to rely on Loggers and Hack checks hidden inside the swf in our case. Here is how it works.
1) Hack checks scans for suspicious activity ( AS IN Time Frames, Specials,Cost, and Weight.
a. (Time Frames)< things was upgraded researched repaired time traveled> And checks the possibility if we was able to acquire them legitly in that time frame.
b. (Specials) < What blueprints ,fleets, Raid prizes we have.> And checks the possibility if we was able to acquire them legitly in that time frame.
c. (Cost) how many FB Credits have we spent according to the logs and Time Frame. The logs are compared with the Time Frame.
d. (Weight) <The weight of our fleets> They check the weight of our fleets with the in-game rules for weight.
2) When we take out the hack checks
3) the loggers are in place to log our activity
4) which is use for when we log in the server will check that same checks (server isn't as strong of a check it briefly scans)
5) Which is why its hit and miss if we get banned or not
6) If we can find away to get all loggers disabled from the background we can be totally undetectable and when we log in without check it has nothing to compare to so it should ride over the top of us and never spot that we was even online .
7) ATM this isn't possible (Til we get rid of canvas/default which is their main logger )
I hope this helps I tried to make this as easy to understand as possible