There isn't an automated way to block the import of hands other than to disable 'Get Hands While Playing' for your poker site(s) in 'Configure -> Site & Import Options -> Site Configuration'. With regards to filtering if there's something unique in the original text in those types of hand history files you could try the method described
here to identify them (the example is run it twice hands but the principle is the same).