Can i stop password protected images bringing a dialog box up?

Posted on 2009-02-19
Last Modified: 2013-11-19
Well this is my problem, I have a forum and people keep posting images which are password protected and this is bringing up a username and password dialog box up, is there any way i can stop this?
Question by:Nathanroys
    LVL 70

    Accepted Solution

    Hi Nathanroys,

    Not real easy to do.  Obviously, you can disable images and that solves that problem albeit it's a bit draconian.

    The other option would involve a preview step and a script that somehow checks to see if an authentication request header is sent to the browser instead of an image.  But I have no idea where to begin writing that script or if it is even possible to do.

    Author Comment

    Thanks for your quick reply, this had helped me alot but unfortunatly has not solved my problem, I am stuck with the same part as yourself, if there are no other replys i will accept yours as the correct answer because of how helpful you have been.
    LVL 70

    Expert Comment

    by:Jason C. Levine
    Wait about 24 hours to see if more replies come and if not, then click "Request Attention" in your original post and ask the Mods to resend alerts.

    My "official" answer at this time is you can't do what you want and that's what you should accept if no one else steps in to correct me.  For your sake, I hope I'm wrong about this.
    LVL 15

    Expert Comment

    In a word, no, unless you have permissions at the server level.

    One assumes the images are linked from a website, and that they're stored in a folder that requires permissions to see. Those permissions aren't set at the website level (like they are at EE), but rather at the server level.

    Jason is spot on.


    LVL 54

    Assisted Solution

    Do you have the option of using a server language or have the ability to use some technology like .NET?  If so which?
    What about requiring images used on your forums to be uploaded to your server?  I would think in many cases you'd want to avoid having people link to material with copyrights and on other's sites.
    With server code you might be able to do the test the experts above mentioned.  The real question is how easy will it be to implement in your code for the forum and will that support it.  In most cases I would wonder if allowing the images is really worth it since it sounds like abuse at least exists (and might be common for you to ask about this).

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now