Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4335570
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:41:16+00:00 2026-05-21T10:41:16+00:00

I am serving my website from mywebsite.com. I host images on flickr so all

  • 0

I am serving my website from mywebsite.com. I host images on flickr so all images are loaded in the user’s browser via get requests to flickr. Many of my websites users access mywebsite.com from corporate networks, which block access to flickr.com. This means users get very annoying blank placeholders instead of the images. I get the same problem with the Facebook like button. This makes my site look very unattractive to such users.

Is there a way I can run a client side script which will check if flickr.com, facebook.com, etc. are accessible. If not I could change the href attribute of the image to load from an alternate source, or replace with a standard image explaining that their network is blocking access. I could also remove the Facebook like button.

I thought an XML http request would do the trick, but then I’d hit cross domain issues I think. I guess I could also set up a proxy to serve the images, but I don’t want to do that; the idea of this is that flickr takes the bandwidth hit.

TLDR: How do I determine if flickr.com is accessible from a user’s browser, using client side technology.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T10:41:16+00:00Added an answer on May 21, 2026 at 10:41 am

    You could try this…

    var image = new Image();
    
    image.onerror = function() {
    
       var images = document
                     .getElementById('flicker-images')
                     .getElementsByTagName('img');
    
       for (var i = 0, imagesLength = images.length; i < imagesLength; i++) {
            images[i].src = 'images/flickr_is_blocked.gif';
       }
    
    };
    
    image.src = 'http://flickr.com/favicon.ico';
    

    Hacky, but it seems to work. However it relies that the favicon.ico 404ing means the main site is.

    jsFiddle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was following a startup information from this website. http://thecodinghumanist.com/blog/archives/2011/5/6/serving-static-files-from-node-js however, using his method,
Would it make sense to improve pageload speed by serving smaller images from the
I have a website on foo.com serving PageA . PageA has some JQuery within
I have an ASP.NET (MVC) website that is serving static content (images) as well
I would like to get some tips from our SO users about serving static
From browsing on this site and elsewhere, I've learned that serving websites as XHTML
I am serving all content through apache with Content-Encoding: zip but that compresses on
I'm serving sensitive information in downloadable PDF's and Spreadsheets within a user registration section
Yesterday I asked about serving byte ranges from PHP. Today my question is -
I'm serving up some files via an HTTPModule in asp.net. I want to know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.