summaryrefslogtreecommitdiff
path: root/docs/configuration/domain-filter.md
diff options
context:
space:
mode:
authorPhilipp Tanlak <philipp.tanlak@gmail.com>2023-11-13 22:36:15 +0100
committerGitHub <noreply@github.com>2023-11-13 22:36:15 +0100
commit190056ee8d6a4eca61d92a79cc25aad645e69d4a (patch)
tree423cb3dfb7ca92e4c1c48c1070f553bbadc4d890 /docs/configuration/domain-filter.md
parenteae10426cd805ecc0a0459b61639e48e6cd913ad (diff)
Move docs to flyscrape.com (#11)
Diffstat (limited to 'docs/configuration/domain-filter.md')
-rw-r--r--docs/configuration/domain-filter.md44
1 files changed, 0 insertions, 44 deletions
diff --git a/docs/configuration/domain-filter.md b/docs/configuration/domain-filter.md
deleted file mode 100644
index e8adc30..0000000
--- a/docs/configuration/domain-filter.md
+++ /dev/null
@@ -1,44 +0,0 @@
-# Domain Filter
-
-The `allowedDomains` and `blockedDomains` config options allow you to specify a list of domains which are accessible or blocked during scraping.
-
-```javascript
-export const options = {
- url: "http://example.com/",
- allowedDomains: ["subdomain.example.com"],
- // ...
-};
-```
-
-### `allowedDomains`
-
-This config option controls which additional domains are allowed to be visted during scraping. The domain of the initial URL is always allowed.
-
-You can also allow all domains to be accessible by setting `allowedDomains` to `["*"]`. To then further restrict access, you can specify `blockedDomains`.
-
-Example:
-
-```javascript
-export const options = {
- url: "http://example.com/",
- allowedDomains: ["*"],
- // ...
-};
-```
-
-### `blockedDomains`
-
-This config option controls which additional domains are blocked from being accessed. By default all domains other than the domain of the initial URL or those specified in `allowedDomains` are blocked.
-
-You can best use `blockedDomains` in conjunction with `allowedDomains: ["*"]`, allowing the scraping process to access all domains except what's specified in `blockedDomains`.
-
-Example:
-
-```javascript
-export const options = {
- url: "http://example.com/",
- allowedDomains: ["*"],
- blockedDomains: ["google.com", "bing.com"],
- // ...
-};
-```