{"id":924,"date":"2024-05-07T11:45:43","date_gmt":"2024-05-07T11:45:43","guid":{"rendered":"https:\/\/kb.shortpixel.com\/docs\/my-site-uses-http-auth-will-spai-work\/"},"modified":"2025-08-27T08:40:13","modified_gmt":"2025-08-27T08:40:13","password":"","slug":"my-site-uses-http-auth-will-spai-work","status":"publish","type":"docs","link":"https:\/\/kb.shortpixel.com\/knowledge-base\/article\/my-site-uses-http-auth-will-spai-work\/","title":{"rendered":"My site uses HTTP AUTH, will SPAI work?"},"content":{"rendered":"\n<p>No, it won&#8217;t work.<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-adaptive-images\/\" rel=\"noopener\">ShortPixel Adaptive Images<\/a> (SPAI) only works with publicly accessible websites. That is, images that do not require a user and password to be seen. Possible solutions are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you just want to run some tests with SPAI, you could temporary disable the protection.<\/li>\n\n\n\n<li>An alternative is to whitelist ShortPixel IPs so that the images can be accessed without user and password. Check out <a href=\"https:\/\/shortpixel.com\/knowledge-base\/article\/ips-to-be-whitelisted\/\" data-type=\"docs\" data-id=\"726\" rel=\"noopener\">here<\/a> our IPs.<\/li>\n<\/ul>\n\n\n\n<p>Also, remember that you can use <a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-image-optimiser\/\" target=\"_blank\" rel=\"noopener\">ShortPixel Image Optimizer<\/a> (SPIO) if you just want to have the images optimized. SPIO has the option to access images on password protected websites.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>No, it won&#8217;t work. ShortPixel Adaptive Images (SPAI) only works with publicly accessible websites. That is, images that do not require a user and password to be seen. Possible solutions are: Also, remember that you can use ShortPixel Image Optimizer (SPIO) if you just want to have the images optimized. SPIO has the option to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[35],"glossaries":[],"doc_tag":[],"class_list":["post-924","docs","type-docs","status-publish","hentry","doc_category-shortpixel-adaptive-images"],"blocksy_meta":[],"year_month":"2026-04","word_count":100,"total_views":"650","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"admin_mdli53m5","author_url":"https:\/\/kb.shortpixel.com\/author\/admin_mdli53m5\/"},"doc_category_info":[{"term_name":"ShortPixel Adaptive Images","term_url":"https:\/\/kb.shortpixel.com\/knowledge-base\/category\/shortpixel-adaptive-images\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/comments?post=924"}],"version-history":[{"count":1,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/924\/revisions"}],"predecessor-version":[{"id":2091,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/924\/revisions\/2091"}],"wp:attachment":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/media?parent=924"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_category?post=924"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/glossaries?post=924"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_tag?post=924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}