@gurselgunacar – depends on what urls and attachments you are trying to protect. If you are talking about WP urls and attachments there are many options – things like “press permit core” – maybe s2member (and many others that are similar)..
If you are talking about the BP created psuedo urls, like member pages and groups – that is going to be more difficult from what I gather. There was some discussion about this here: https://buddypress.org/support/topic/bp-member-pages-visibility-restriction/#post-241840 recently.
If you are talking about attachments like with rtmedia uploads – that’s a whole ‘nother ball of wax.
@djsteveb Thanks for your reply. I am talking about protecting the url and images in posts from non members. The URL or the image will be visible if user loged in.
If not it will notify You must login or register to see this. or redirect to login page.
For example : http://forums.augi.com/showthread.php?157803-Raster-tools-not-recognised
in this forum when you click the attachments it redirects to the login page.