restrict accessing Image directly through URL ASP.Net from a particular Folder - asp.net

I am having a website developed with ASP.Net(4.0). I am having Jpeg images maintained in a Folder. I would like to restrict the users from directly accessing the images through url access(Like: "http://www.example.com/images/latest/a123g.jpg"). But, I am showing these images in lightbox from a particular page.
In addition, I would like to restrict the particular folder images from displaying in Google Image search. Kindly Guide me.
Thanks in advance!
Thirumalaisamy.P

For restricting users from directly accessing your images through url, you will need to use hidden segments in your web.config file, as stated in this answer.

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.

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

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 :)

Amazon S3 - Prevent URL Sharing

I'm hosting videos on Amazon S3 and was wondering if anyone here could give me any tips to stop people from finding the direct video URL and sharing it around as well as using it on their website.
I'm using WordPress and I have embedded it into a members only page. However, I'm worried people are going to right-click on the page, find the direct URL and share it around that way.
I'm thinking of disabling right-clicking but was wondering if there was a better way.
Also by going to File-->Save Page As and saving the page, it also downloads the .mp4 video embedded into the website.
Any advice?
You can use CloudFront to access s3 object.
When you hit CloudFront url it access object from s3.
it hides the actual url from user.
You can also generate policy statement for restrict access for particular user.

Prevent PDF link from being shared

There is a pdf on the server that we want users to access only those with the link is there any way we can prevent from being shared as well? So if the users want to share the link it will redirect them to the homepage. I know users can download and share it amongst themselves, that is something we can't prevent but I at least want to prevent them from sharing the URL. I tried to prevent hotlinking but most of the tutorials and resources I found prevent all PDFs from being shared.
I know this is a late response but you can easily use the HTTP REFERER field to prevent access to a link from outside certain pages - SpeedFan does this for their installer download links.

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.

Resources