Control which image sources the web snippet will process.
By default, the web snippet processes images from any domain found on your page. You can restrict this to prevent generating alt text for external or third-party images you don’t control.Configure allowed sources in the Web Snippets dashboard under your snippet settings.
Options
Site domain & subdomains only
When enabled, only images hosted on your site’s domain and its subdomains are processed. All other sources are ignored.For example, if your site is example.com, the following images would be processed:
https://example.com/images/photo.jpg
https://cdn.example.com/images/photo.jpg
And the following would be ignored:
https://third-party-cdn.com/image.png
https://google.com/test/img.png
Whitelist of sources (URL prefixes)
When you need images from specific external sources in addition to your own domain, add their URL prefixes to the whitelist. Any image URL that starts with a whitelisted prefix will be processed.For example, with https://third-party-cdn.com/images in the whitelist, the following would be processed:
https://third-party-cdn.com/other/image.png(does not match prefix)
https://google.com/test/img.png(not in whitelist)
We recommend enabling Site domain & subdomains only or maintaining an explicit whitelist rather than leaving sources unrestricted. This prevents unnecessary credit usage on external images you don’t control.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AltTextLab","colors":{"primary":"#008a68","light":"#07C983","dark":"#008a68"},"logo":{"light":"https://mintcdn.com/alttextlab/JUO03oSYIhNOYrbm/logo/light.svg?fit=max\u0026auto=format\u0026n=JUO03oSYIhNOYrbm\u0026q=85\u0026s=40914d638270acd39ea8ef89989e2b05","dark":"https://mintcdn.com/alttextlab/JUO03oSYIhNOYrbm/logo/dark.svg?fit=max\u0026auto=format\u0026n=JUO03oSYIhNOYrbm\u0026q=85\u0026s=2beb5ead70c43c85a52b294a1e088a47","href":"https://www.alttextlab.com"},"favicon":"https://mintcdn.com/alttextlab/JUO03oSYIhNOYrbm/favicon.svg?fit=max\u0026auto=format\u0026n=JUO03oSYIhNOYrbm\u0026q=85\u0026s=a1d3bba969cb9c1874ee333284f62965","navbar":{"links":[{"href":"https://www.alttextlab.com/contact","label":"Support"}],"primary":{"type":"button","label":"Sign Up","href":"https://app.alttextlab.com/sign-up"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/alttextlab","youtube":"https://www.youtube.com/@AltTextLab","x":"https://x.com/alttextlab"}},"integrations":{"ga4":{"measurementId":"G-RV35RHPMW8"},"posthog":{"apiKey":"phc_fE5bVNocOJEUnzkHDqplvTsjjO5GKd0FcawjbF2Bzuc","apiHost":"https://a.alttextlab.com","sessionRecording":true}},"contextual":{"options":["copy","chatgpt","claude","perplexity","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"browser","href":"https://app.alttextlab.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"alttextlab","hasAudioNarration":false,"actualSubdomain":"alttextlab","customDomains":["www.alttextlab.com"],"gitSource":{"type":"github","owner":"alttextlab","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ad08cd38c8eea48ffd040f9","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Integrations","count":19},{"language":"default","tag":"Craft CMS","count":5},{"language":"default","tag":"Webflow","count":5},{"language":"default","tag":"Web snippet","count":5},{"language":"default","tag":"Developer API","count":4},{"language":"default","tag":"Browser extensions","count":4},{"language":"default","tag":"WordPress","count":4},{"language":"default","tag":"Features","count":3},{"language":"default","tag":"Get started","count":2},{"language":"default","tag":"Guides","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"web-snippet/allowed-sources","slug":"/web-snippet/allowed-sources","pageMetadata":{"title":"Allowed sources","description":"Control which image sources the web snippet will process.","href":"/web-snippet/allowed-sources"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Control which image sources the web snippet will process.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`By default, the web snippet processes images from any domain found on your page. You can restrict this to prevent generating alt text for external or third-party images you don’t control.`}),`\n`,_jsxs(_components.p,{children:[`Configure allowed sources in the `,_jsx(_components.a,{href:`https://app.alttextlab.com/web-snippets`,children:`Web Snippets dashboard`}),` under your snippet settings.`]}),`\n`,_jsx(Heading,{level:`2`,id:`options`,children:`Options`}),`\n`,_jsx(Heading,{level:`3`,id:`site-domain-\u0026-subdomains-only`,children:`Site domain \u0026 subdomains only`}),`\n`,_jsx(_components.p,{children:`When enabled, only images hosted on your site’s domain and its subdomains are processed. All other sources are ignored.`}),`\n`,_jsxs(_components.p,{children:[`For example, if your site is `,_jsx(_components.code,{children:`example.com`}),`, the following images would be processed:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://example.com/images/photo.jpg`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://cdn.example.com/images/photo.jpg`})}),`\n`]}),`\n`,_jsx(_components.p,{children:`And the following would be ignored:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://third-party-cdn.com/image.png`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://google.com/test/img.png`})}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`whitelist-of-sources-url-prefixes`,children:`Whitelist of sources (URL prefixes)`}),`\n`,_jsx(_components.p,{children:`When you need images from specific external sources in addition to your own domain, add their URL prefixes to the whitelist. Any image URL that starts with a whitelisted prefix will be processed.`}),`\n`,_jsxs(_components.p,{children:[`For example, with `,_jsx(_components.code,{children:`https://third-party-cdn.com/images`}),` in the whitelist, the following would be processed:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`https://example.com/photo.jpg`}),` `,_jsx(_components.em,{children:`(own domain)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`https://cdn.example.com/photo.jpg`}),` `,_jsx(_components.em,{children:`(own subdomain)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`https://third-party-cdn.com/images/product.png`}),` `,_jsx(_components.em,{children:`(matches whitelist prefix)`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:`And the following would be ignored:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`https://third-party-cdn.com/other/image.png`}),` `,_jsx(_components.em,{children:`(does not match prefix)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`https://google.com/test/img.png`}),` `,_jsx(_components.em,{children:`(not in whitelist)`})]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`We recommend enabling `,_jsx(_components.strong,{children:`Site domain \u0026 subdomains only`}),` or maintaining an explicit whitelist rather than leaving sources unrestricted. This prevents unnecessary credit usage on external images you don’t control.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Allowed sources","description":"Control which image sources the web snippet will process.","href":"/web-snippet/allowed-sources"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Options","slug":"options","depth":2,"children":[{"title":"Site domain \u0026 subdomains only","slug":"site-domain-\u0026-subdomains-only","depth":3,"children":[]},{"title":"Whitelist of sources (URL prefixes)","slug":"whitelist-of-sources-url-prefixes","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/alttextlab/b7c2135e515cc6c3/openai.js","/docs/_mintlify/custom/alttextlab/a9654dd874a77848/tawk.js"],"subdomain":"alttextlab","siteName":"AltTextLab","title":"Allowed sources - AltTextLab","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-10T10:27:36.239Z","originalFileLocation":"web-snippet/allowed-sources.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Control which image sources the web snippet will process.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AltTextLab\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/alttextlab/7kKaILkfVS_P0qDJ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/alttextlab/7kKaILkfVS_P0qDJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/alttextlab/7kKaILkfVS_P0qDJ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/alttextlab/7kKaILkfVS_P0qDJ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/alttextlab/7kKaILkfVS_P0qDJ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/alttextlab/7kKaILkfVS_P0qDJ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/alttextlab/7kKaILkfVS_P0qDJ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/alttextlab/7kKaILkfVS_P0qDJ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/alttextlab/7kKaILkfVS_P0qDJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Allowed sources - AltTextLab\">\u003cmeta data-mint-head property=\"og:description\" content=\"Control which image sources the web snippet will process.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AltTextLab\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.alttextlab.com/docs/web-snippet/allowed-sources\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://alttextlab.mintlify.site/docs/_mintlify/api/og/v2?division=Web+snippet\u0026amp;title=Allowed+sources\u0026amp;description=Control+which+image+sources+the+web+snippet+will+process.\u0026amp;theme=15ff3824f5369e83000c0ed7\u0026amp;signature=fbe8521c7181c293a7efd55cc3ffc134b52a9e6745ab67d1805d051986d72870\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Allowed sources - AltTextLab\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Control which image sources the web snippet will process.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://alttextlab.mintlify.site/docs/_mintlify/api/og/v2?division=Web+snippet\u0026amp;title=Allowed+sources\u0026amp;description=Control+which+image+sources+the+web+snippet+will+process.\u0026amp;theme=15ff3824f5369e83000c0ed7\u0026amp;signature=fbe8521c7181c293a7efd55cc3ffc134b52a9e6745ab67d1805d051986d72870\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/alttextlab/7kKaILkfVS_P0qDJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AltTextLab\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#008a68\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.alttextlab.com/docs/web-snippet/allowed-sources\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/web-snippet/allowed-sources.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.alttextlab.com/#organization\",\"name\":\"AltTextLab\",\"url\":\"https://www.alttextlab.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/alttextlab/JUO03oSYIhNOYrbm/logo/light.svg?fit=max\u0026auto=format\u0026n=JUO03oSYIhNOYrbm\u0026q=85\u0026s=40914d638270acd39ea8ef89989e2b05\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.alttextlab.com/docs#website\",\"name\":\"AltTextLab\",\"url\":\"https://www.alttextlab.com/docs\",\"publisher\":{\"@id\":\"https://www.alttextlab.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.alttextlab.com/docs/web-snippet/allowed-sources#webpage\",\"url\":\"https://www.alttextlab.com/docs/web-snippet/allowed-sources\",\"name\":\"Allowed sources\",\"description\":\"Control which image sources the web snippet will process.\",\"dateModified\":\"2026-05-10T10:27:36.239Z\",\"isPartOf\":{\"@id\":\"https://www.alttextlab.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.alttextlab.com/docs/web-snippet/allowed-sources#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.alttextlab.com/docs/web-snippet/allowed-sources#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Web snippet\",\"item\":\"https://www.alttextlab.com/docs/web-snippet\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Allowed sources\",\"item\":\"https://www.alttextlab.com/docs/web-snippet/allowed-sources\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.alttextlab.com/docs/web-snippet/allowed-sources#article\",\"headline\":\"Allowed sources\",\"name\":\"Allowed sources\",\"description\":\"Control which image sources the web snippet will process.\",\"url\":\"https://www.alttextlab.com/docs/web-snippet/allowed-sources\",\"mainEntityOfPage\":{\"@id\":\"https://www.alttextlab.com/docs/web-snippet/allowed-sources#webpage\"},\"dateModified\":\"2026-05-10T10:27:36.239Z\",\"publisher\":{\"@id\":\"https://www.alttextlab.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.alttextlab.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AltTextLab\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"AltTextLab\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/web-snippet/allowed-sources.md","siteName":"AltTextLab","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"browser","href":"https://app.alttextlab.com"}]},"groups":[{"group":"Get started","pages":[{"title":"AltTextLab: getting started","sidebarTitle":"Introduction","href":"/index"},{"title":"Quickstart","href":"/get-started/quickstart"}]},{"group":"Integrations","pages":[{"title":"Integrations","sidebarTitle":"Overview","href":"/integrations/index"},{"group":"WordPress","root":{"title":"WordPress plugin","href":"/integrations/wordpress/overview"},"pages":[{"title":"Installation","href":"/integrations/wordpress/installation"},{"title":"Settings","href":"/integrations/wordpress/settings"},{"title":"Usage","href":"/integrations/wordpress/usage"},{"title":"WooCommerce","href":"/integrations/wordpress/woocommerce"}]},{"group":"Craft CMS","root":{"title":"Craft CMS plugin","href":"/integrations/craftcms/overview"},"pages":[{"title":"Installation","href":"/integrations/craftcms/installation"},{"title":"Settings","href":"/integrations/craftcms/settings"},{"title":"Usage","href":"/integrations/craftcms/usage"},{"title":"Craft Commerce","href":"/integrations/craftcms/commerce"},{"title":"Troubleshooting","href":"/integrations/craftcms/troubleshooting"}]},{"group":"Webflow","root":{"title":"Webflow app","href":"/integrations/webflow/overview"},"pages":[{"title":"Installation","href":"/integrations/webflow/installation"},{"title":"Settings","href":"/integrations/webflow/settings"},{"title":"Usage","href":"/integrations/webflow/usage"},{"title":"Webflow CMS","href":"/integrations/webflow/cms"},{"title":"Troubleshooting","href":"/integrations/webflow/troubleshooting"}]},{"group":"Browser extensions","root":{"title":"Browser extensions","href":"/integrations/browser/overview"},"pages":[{"title":"Chrome extension","href":"/integrations/browser/chrome"},{"title":"Firefox add-on","href":"/integrations/browser/firefox"},{"title":"Edge extension","href":"/integrations/browser/edge"},{"title":"Troubleshooting","href":"/integrations/browser/troubleshooting"}]}]},{"group":"Web snippet","pages":[{"title":"Web snippet","sidebarTitle":"Overview","href":"/web-snippet/index"},{"title":"Get started","href":"/web-snippet/get-started"},{"title":"Installation \u0026 configuration","href":"/web-snippet/installation"},{"title":"Ignoring decorative images","description":"Prevent alt text generation for icons, spacers, and other decorative images.","href":"/web-snippet/ignoring-decorative-images"},{"title":"Allowed sources","href":"/web-snippet/allowed-sources"}]},{"group":"Developer API","pages":[{"title":"Alt Text Generator API","sidebarTitle":"Overview","description":"Generate alt text programmatically using the AltTextLab REST API.","href":"/api/index"},{"title":"API key","href":"/api/api-key"},{"title":"Authentication","href":"/api/authentication"},{"title":"Alt text generation","href":"/api/alt-text-generation"}]},{"group":"Features","pages":[{"title":"Writing styles","href":"/features/writing-styles"},{"title":"E-commerce mode","href":"/features/ecommerce-mode"},{"title":"Supported languages","href":"/features/supported-languages"}]},{"group":"Guides","pages":[{"title":"Best practices","href":"/guides/best-practices"},{"title":"Private S3 images","href":"/guides/private-s3-images"}]}]},"basePath":"","title":"Allowed sources - AltTextLab","buildId":"dpl_Aw98ji4XvBsgtZwL1VrkUF9ehFqz","deploymentId":"dpl_Aw98ji4XvBsgtZwL1VrkUF9ehFqz","dynamics":[],"chunks":[]}