Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
How to protect pictures on a protected webpage?

cornelia
Registered User
Quote
2023-03-04 21:07:14

I have a webpage protected with a password.
That works well.
But I do have a question about this.
The pictures I used can be seen if you know the link.
I assume that Google will find the images also.
Example: www.website.com/rc_images/xxx.jpg
How can I also protect the images on the protected page?


erik
Registered User
Quote
2023-03-05 06:29:25

The built-in page protection only is for the page, it doen't protect the images, right. For that, I can recommend to use the .htaccess method. Do it like that:

Create a sub folder where everything is in you want to protect. Like www.website.com/protected_folder/

For that subpage, you create a separate rocketcake project and upload everything into that folder.

Then, you generate a .htaccess and htpasswd file and load it into that folder. There are several generators on the web which can do this for you. It's a bit tricky, but once you figured it out, it works nicely.


micaelo
Registered User
Quote
2023-03-06 00:09:16

If it's just to prevent images of your website from appearing in Google search results, you could add a robots.txt file to the root directory of your server:
User-agent: Googlebot-Image
Disallow: /

See also https://developers.google.com/se...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact