
Hi @Srikanth Manga ,
There is no OOTB facility with SharePoint Online to restrict specific file extensions in SharePoint Online.
But after my research and testing , I can create a flow as a workaround that will auto-runs on each file upload and if it doesn't match the given type or extension (.exe ,.dll in your case), auto-delete that document and send email to the author who uploaded it.
Compose 2 inputs:
last(split(triggerOutputs()?['body/{FilenameWithExtension}'],'.'))
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.