Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
Currently when someone types in the url for my image file (eg. www.example.com/image/example.jpg), the image will appear in their browser. How am I able to hide the image from the rest of the world. Please help. Thanks.
Hi,
Currently when someone types in the url for my image file (eg. www.example.com/image/example.jpg), the image will appear in their browser. How am I able to hide the image from the rest of the world. Please help. Thanks.
What are you trying to do? prevent other sites from linking to your images or preventing anyone from seeing the image at all?
You can change the read permissions so that only the owner can read it (assuming the web server does not run as you). You can use apache's rewrite engine to stop anyone viewing an image unless they are reffered by your site. You can put the image in a directory not accessible by your web server.
Hi,
Actually I want to prevent others from viewing the image directly when they type in the location of the file that I have mentioned above. However I only want others to be able to view the image from the page that I have the image linked to.
When your browser is loading the image as part of a page on your site, or as a direct request for the image, the web server doesn't know any different.
Is there a specific reason you're trying to achieve this, or just general paranoia?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.