Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Private attachments and overall privacy
Avatar
joeb
Rookie
Free Members
sp_UserOfflineSmall Offline
Sep 28, 2012 - 2:46 am

Hi,

I want to set up a totally private forum of which no part or attachment can be accessed without membership. I have noticed that an attachment to a post can be downloaded by the URL - can I prevent this happening? Also, just want to make sure that web spiders won't be able to access posts and then cache them.

 

Thanks!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 28, 2012 - 4:24 am

Please see the Permissions where you will find that you can stop users downloading attachments with the 'Can download other file type attachments' permission setting. So this can be turned on for those members you wish to be able to download.
If private then spiders etc., can not load those forums/topics/posts.

andy-signature.png
YELLOW
SWORDFISH
Avatar
joeb
Rookie
Free Members
sp_UserOfflineSmall Offline
Sep 28, 2012 - 6:58 pm

But it is still possible for anyone to browse the /forum-file-uploads/ directory and access all files uploaded by any user. eek

I only want to grant this privilege to Standard Access groups and above. Can I do that?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 28, 2012 - 7:28 pm

Afraid not. Users can only browse their uploads.

Avatar
joeb
Rookie
Free Members
sp_UserOfflineSmall Offline
Sep 29, 2012 - 8:00 pm

Mr Papa, the topic here is how to prevent non-logged-in users from browsing the web directory and accessing all the attachments. By default this directory is:

.../wp-content/sp-resources/forum-file-uploads/

Has anyone got a fix?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 29, 2012 - 8:28 pm

fix for what??? not letting users browse directories on you server?? that is not an SP issue but server configuration issue...

you could add a blank index.php into that directory... but that would only help on that directory... you would still have others that are browsable...

what you really need to do is add:

Options -Indexes

to your .htaccess file in your root directory... that command will prevent any user from browsing directories on your server...

Avatar
joeb
Rookie
Free Members
sp_UserOfflineSmall Offline
Sep 30, 2012 - 10:56 pm

Thank you My Papa, that certainly put me in the right direction.

I found out I could disable directory browsing with this plugin: http://coffee2code.com/wp-plug.....-listings/

And then I also created some new directories for uploads that no-one would be able to guess. The Cone of Silence is now fully activated! laugh

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 1, 2012 - 3:54 am

Excellent. I wish it well.

andy-signature.png
YELLOW
SWORDFISH
Avatar
joeb
Rookie
Free Members
sp_UserOfflineSmall Offline
Oct 2, 2012 - 12:32 am

OK, I am adding a post-script just in case it is useful for anyone else... and for me if i forget! I was still concerned that my forum files would be accessible to someone not logged in but who had somehow obtained the direct link. So I found a relatively easy method to make sure that only logged in users would be able to access that link - it does require that you have access to the server files. 

  1. Install the following plugin and activate it:  Private WP suite
  2. Enable the "disable feed" and "protect uploads" options from within the plugin's settings tab.
  3. Access the server files and copy the wp-content/uploads/.htaccess file to your forum upload directory 
  4. Now, delete the wp-content/uploads/.htaccess  file (or restore it if it existed previously - by default in Wordpress, it does not exist).
  5. Finally, edit the .htaccess file you have just created in your forum uploads directory so that the RewriteBase variable reflects the actual location of said file as follows:
# Start Private WP suite rewrite rules
RewriteEngine On
RewriteBase /[path to this file on your server]/wp-content/uploads/
RewriteRule . /[your root directory]/nonexsistent_file_to_trigger_404_error
Options -Indexes
# End Private WP suite rewrite rules

 



In my case, this has allowed for an publicly accessible website with an integrated but completely private forum. 

ideaWould like to humbly suggest some sort of integration of Private WP Suite with Simple Press as a possible future development as I am sure others would like a fully private forum with a user upload capability rout-of-the-box. 

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 3, 2012 - 8:26 am

glad it works for you!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625