我想爲我的應用使用該反盜版代碼。這款iOS反盜版代碼有什麼好處嗎?
NSString* bundlePath = [[NSBundle mainBundle] bundlePath];
BOOL fileExists = [[NSFileManager defaultManager] fileExistsAtPath:(@"%@/_CodeSignature", bundlePath)];
if (!fileExists) {
//Pirated
NSLog(@"Pirated");
}
BOOL fileExists2 = [[NSFileManager defaultManager] fileExistsAtPath:(@"%@/CodeResources", bundlePath)];
if (!fileExists2) {
//Pirated
NSLog(@"Pirated2");
}
BOOL fileExists3 = [[NSFileManager defaultManager] fileExistsAtPath:(@"%@/ResourceRules.plist", bundlePath)];
if (!fileExists3) {
//Pirated
NSLog(@"Pirated3");
}
有沒有人使用過它?它可以用於一些基本的保護,還是隻是廢話?你對這個主題有什麼建議?
它不僅被徹底擊敗(攻擊者可以更改字符串),而且它依賴於Apple可隨時更改的實現細節。作爲一個合法用戶,如果我升級了我的操作系統,並且被您的應用程序視爲盜版,我會非常惱火。 – 2012-02-20 22:20:55
爲什麼不花費這些時間來使付費客戶的應用程序變得更好?你不會阻止你的應用盜版,大多數盜版的人可能不會購買它。 – UIAdam 2012-02-20 23:18:56
希臘在這裏盜版iPhone手機佔了iPhone的70%左右,所以這項技術是一個非常糟糕的主意! – 2012-02-20 23:29:42