Hey there Goharika,
Hope you’re having a great day ??
This subforum is for support for the free version of Membership 2, for questions related to the premium version please use WPMU DEV forum, you can open a thread here and our support staff will help you in no time ??
With that being said and since you already posted here I’ll respond. You can achieve this in multiple ways.
1. By using Media protection add-on. Go to Membership 2 -> Add-ons -> Media Protection (click on details) -> activate Protect Individual Media files, see screenshot https://screencast.com/t/Rxkf0sbc3. This will add “Media Library Items” in Membership 2 -> Protection Rules where you can protect attachments from your media library.
2. You can use content protection shortcodes and wrap the content that you want protected inside your post/page content. You can find more info about what shortcodes you can use for this in Membership 2 -> Memberships by hovering on the Show in Shortcodes column https://screencast.com/t/RRiwoVLBvUwq.
If you have additional questions please use the WPMU DEV forum as instructed above.
Have a great weekend!
Cheers,
Bojan