Wp-Stateless + Google Cloud Storage view but not download files - wordpress

I want to use Google Cloud Storage (GCS) to share my videos on my WordPress LMS, for that, I am using WP-Stateless which during setup which requires to provide public access to my GCS bucket.
Now my issue is that I want my users to be able to view the media files but not be able to download them.
Is there any way to do that?

There is no way to prevent users from downloading images from your website. In fact when users view your images in a browser, they are downloaded to your browser cache. You can take some measures like:
Prevent right click
Disable hotlinking
Add a watermark
Add a copyright notice etc etc...
But realistically there is not much you can do. Everything you do to protect your images can be bypassed. You could also use a plugin to convert your images to webp format. Most people do not like downloading webp. They prefer jpg and png :)

Related

Is it possible to display images from other sources on your wordpress page?

I have a lot of pictures on my homepage. Of course, this also requires a lot of disk space. Now I got the glorious idea that I don't store the images on the website, but on an external source (like Dropbox or Google Drive). There I can then also manage my own folder structure and do not have to use this stupid structure of Wordpress.
So the idea is that I can display images on my wordpress page, that are stored on an external source. Is this possible and how?
Actually you can achieve that but with a little bit different approach. Since you can't get public links to the images in your Dropbox or Google Drive, you might wanna try AWS S3 or Google Cloud Storage instead.

how can I protect my videos from download in WordPress template?

I wanna upload my tutorial videos on a WordPress website. I was wondering if there is any solution to protect these videos from download. I'd rather if students can only use them online.
the videos will upload to a private host and using embedded links I'm gonna make them visible on my website. but I need them to be protected from the download.
is it possible?
I don't think so..
The principle of the video is to send content on the computer of those who watch it, I think there will always be a way to download the video... it will be more or less difficult, but possible.

Wordpress thumbnail images in Google Bucket

Recently started using Google Cloud platform bucket to store all my wordpress images. As many of you know wordpress creates many thumbnails from the original image that was uploaded.
I have been able to link the image from the google bucket to wordpress. But from time to time I update the image. I thought it would have automatically updated the thumbnails as well. But this is not the case.
Scenario - I upload main image into wordpress media library. It creates two other images plus original eg Image.jpg; Image-510x383.jpg; Image-115x85.jpg
Only the Image.jpg is visible in the Google Bucket. Should I reupload the image with a change using gsutil. The main full scale image changes on wordpress live site but the thumbnails remain the old versions.
How do you find were these thumbnailed images are in Google bucket so I can resync them easily as well.
Thanks for any assistance.
Check out the WP-Stateless plugin - it's free. https://wordpress.org/plugins/wp-stateless/
It will manage the process of uploading your images and other files (PDFs, MP3s, etc) to Google Cloud Storage, including all the thumbnails WordPress generates. It supports several modes, including a mode that will delete the local file since it is no longer needed.

Manage a website gallery with dropbox folder

I'm trying to make a gallery photo on website and my client need to upload these photos unto dropbox or google drive.
I've embed a gallery from google drive in my website and it works perfectly (which means I can see the photos). But, when I click on a photos, it redirects me on google drive and its not a good rendering.
I've also try this solution : pull and display images in website gallery from dropbox directory. It seems to be a good solution but unfortunatly, nothing appears on my website.
Anyone has a solution? I really need my client to manage himself is gallery photo without having to put it on FTP.
Thanks
Take a look at the Google Drive SDK and API, which allows you to get the list of files in a Drive folder and URLs that can be used to view the image directly. Depending on your needs, you can turn this into a gallery, use a lightbox to display the image, or whatever you specifically need.
You may also want to take a look at using Drive to publish website content. You may still need to write some code to create the gallery portion, but this provides an easy public place to store and manage the uploaded images.

wordpress, a download manager for outside URLs

I'm working on a online file library for one of my clients. It's a library for mostly PDFs and office documents. Because they are a huge amount(almost 2gb in files), I'm hosting them on another site(divshare), so that the hosting account we have doesn't get blocked by the excess of files, and also because of excess traffic downloading can generate.
So, my question is if there is a good download manager(even with some search for download categories and so) that can handle instead of local uploaded files, URLs of files hosted somewhere else?
The advice about any plugin or the like is very appreciated.
You ask how to code such manager, right? Otherwise, your are on the wrong site...
I think you need to make a kind of file manager, except that instead of generating HTML pages to view the files and act on them, it exposes a Web API, returning XML or Json data, that a WordPress plugin can manage.
From Divshare:
The DivShare Uploader Plugin for Wordpress replaces your regular
uploading frame with a DivShare upload form, allowing you to easily
upload and add files without ever leaving your "Write a Post" page.
It's a great way to speed up your blogging and take the load off your
servers when hosting big files and images.
It can be found here: http://www.divshare.com/integrate
Good Luck!
Marcelous

Resources