     /// - Throws: errors
     public func acquireSecurizedURLFrom(originalURL: URL, appScoped: Bool=false) throws ->URL {
         do{
-            if originalURL.isFileURL == false{
+
+            guard  originalURL.isFileURL == false , originalURL.isInMainBundle, self.urlIsInAppContainer(url: originalURL) else{
+                // Do not acquire any distant url or containerized URL
                 return originalURL
             }
 
-            if originalURL.isInMainBundle{
-                return originalURL
-            }
-
             #if os(OSX)
-                if !appScoped && self.isDraft{
-                    // The document must have an URL to create a Bookmark
-                    throw SecurityScopedBookMarkError.documentIsADraft
-                }
+            if !appScoped && self.isDraft{
+                // The document must have an URL to create a Bookmark
+                throw SecurityScopedBookMarkError.documentIsADraft
+            }
             #endif
 
             if let url=self._normalizeFileURL(originalURL){

import Foundation

#if os(OSX)
    import AppKit
#else
    import UIKit
#endif



        var bookmarkIsStale: Bool = false
        do {
            #if os(OSX)
            let securizedURL = try URL(resolvingBookmarkData: data,
                                       options: URL.BookmarkResolutionOptions.withSecurityScope, relativeTo:  appScoped ? nil : self.fileURL,
                                       bookmarkDataIsStale: &bookmarkIsStale)
            #else
            let securizedURL = try URL(resolvingBookmarkData: data,
                                       options: URL.BookmarkResolutionOptions.withoutUI, relativeTo:  appScoped ? nil : self.fileURL,
                                       bookmarkDataIsStale: &bookmarkIsStale)
            #endif
            if (!bookmarkIsStale) {
                return securizedURL!
