Skip to content

Commit 6ef7bc0

Browse files
authored
Only use example.com as example domain (#41428)
* Only use *.example and example.com as example domains * Revert changes * Use non-apex
1 parent 65d5ff8 commit 6ef7bc0

File tree

21 files changed

+51
-48
lines changed

21 files changed

+51
-48
lines changed

files/en-us/glossary/preflight_request/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ For example, a client might be asking a server if it would allow a {{HTTPMethod(
1717
OPTIONS /resource/foo
1818
Access-Control-Request-Method: DELETE
1919
Access-Control-Request-Headers: x-requested-with
20-
Origin: https://foo.bar.org
20+
Origin: https://www.example.com
2121
```
2222

2323
If the server allows it, then it will respond to the preflight request with an {{HTTPHeader("Access-Control-Allow-Methods")}} response header, which lists `DELETE`:
2424

2525
```http
2626
HTTP/1.1 204 No Content
2727
Connection: keep-alive
28-
Access-Control-Allow-Origin: https://foo.bar.org
28+
Access-Control-Allow-Origin: https://www.example.com
2929
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE
3030
Access-Control-Allow-Headers: X-Requested-With
3131
Access-Control-Max-Age: 86400

files/en-us/learn_web_development/extensions/forms/basic_native_form_controls/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ If the image button is used to submit the form, this control doesn't submit its
285285
So for example when you click on the image at coordinate (123, 456) and it submits via the `get` method, you'll see the values appended to the URL as follows:
286286

287287
```url
288-
http://foo.com?pos.x=123&pos.y=456
288+
https://example.com?pos.x=123&pos.y=456
289289
```
290290

291291
This is a very convenient way to build a "hot map". How these values are sent and retrieved is detailed in the [Sending form data](/en-US/docs/Learn_web_development/Extensions/Forms/Sending_and_retrieving_form_data) article.

files/en-us/learn_web_development/extensions/forms/sending_and_retrieving_form_data/index.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ The {{HTMLElement("form")}} element defines how the data will be sent. All of it
5555

5656
The [`action`](/en-US/docs/Web/HTML/Reference/Elements/form#action) attribute defines where the data gets sent. Its value must be a valid relative or absolute [URL](/en-US/docs/Learn_web_development/Howto/Web_mechanics/What_is_a_URL). If this attribute isn't provided, the data will be sent to the URL of the page containing the form — the current page.
5757

58-
In this example, the data is sent to an absolute URL — `https://example.com`:
58+
In this example, the data is sent to an absolute URL — `https://www.example.com`:
5959

6060
```html
61-
<form action="https://example.com">…</form>
61+
<form action="https://www.example.com">…</form>
6262
```
6363

6464
Here, we use a relative URL — the data is sent to a different URL on the same origin:
@@ -93,7 +93,7 @@ The [`GET` method](/en-US/docs/Web/HTTP/Reference/Methods/GET) is the method use
9393
Consider the following form:
9494

9595
```html
96-
<form action="http://www.foo.com" method="GET">
96+
<form action="https://www.example.com/greet" method="GET">
9797
<div>
9898
<label for="say">What greeting do you want to say?</label>
9999
<input name="say" id="say" value="Hi" />
@@ -108,7 +108,7 @@ Consider the following form:
108108
</form>
109109
```
110110

111-
Since the `GET` method has been used, you'll see the URL `www.foo.com/?say=Hi&to=Mom` appear in the browser address bar when you submit the form.
111+
Since the `GET` method has been used, you'll see the URL `https://www.example.com/greet?say=Hi&to=Mom` appear in the browser address bar when you submit the form.
112112

113113
![The changed url with query parameters after submitting the form with GET method with a "server not found" browser error page](url-parameters.png)
114114

@@ -121,7 +121,7 @@ The HTTP request looks like this:
121121

122122
```http
123123
GET /?say=Hi&to=Mom HTTP/2.0
124-
Host: foo.com
124+
Host: example.com
125125
```
126126

127127
> [!NOTE]
@@ -137,7 +137,7 @@ The [`POST` method](/en-US/docs/Web/HTTP/Reference/Methods/POST) is a little dif
137137
Let's look at an example — this is the same form we looked at in the `GET` section above, but with the [`method`](/en-US/docs/Web/HTML/Reference/Elements/form#method) attribute set to `POST`.
138138

139139
```html
140-
<form action="http://www.foo.com" method="POST">
140+
<form action="https://www.example.com/greet" method="POST">
141141
<div>
142142
<label for="say">What greeting do you want to say?</label>
143143
<input name="say" id="say" value="Hi" />
@@ -156,7 +156,7 @@ When the form is submitted using the `POST` method, you get no data appended to
156156

157157
```http
158158
POST / HTTP/2.0
159-
Host: foo.com
159+
Host: example.com
160160
Content-Type: application/x-www-form-urlencoded
161161
Content-Length: 13
162162
@@ -178,7 +178,7 @@ HTTP requests are never displayed to the user (if you want to see them, you need
178178
1. Open the developer tools.
179179
2. Select "Network"
180180
3. Select "All"
181-
4. Select "foo.com" in the "Name" tab
181+
4. Select "example.com" in the "Name" tab
182182
5. Select "Request" (Firefox) or "Payload" (Chrome/Edge)
183183

184184
You can then get the form data, as shown in the image below.
@@ -292,7 +292,10 @@ If you want to send files, you need to take three extra steps:
292292
For example:
293293

294294
```html
295-
<form method="post" action="https://www.foo.com" enctype="multipart/form-data">
295+
<form
296+
method="post"
297+
action="https://example.com/upload"
298+
enctype="multipart/form-data">
296299
<div>
297300
<label for="file">Choose a file</label>
298301
<input type="file" id="file" name="myFile" />

files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The declarative rules are defined by four fields:
3737
> - the action does not change the request.
3838
> - the redirect URL is invalid (e.g., the value of {{WebExtAPIRef("declarativeNetRequest.redirect","redirect.regexSubstitution")}} is not a valid URL).
3939
40-
This is an example rule that blocks all script requests originating from `"foo.com"` to any URL with `"abc"` as a substring:
40+
This is an example rule that blocks all script requests originating from `"example.com"` to any URL with `"abc"` as a substring:
4141

4242
```json
4343
{
@@ -46,7 +46,7 @@ This is an example rule that blocks all script requests originating from `"foo.c
4646
"action": { "type": "block" },
4747
"condition": {
4848
"urlFilter": "abc",
49-
"initiatorDomains": ["foo.com"],
49+
"initiatorDomains": ["example.com"],
5050
"resourceTypes": ["script"]
5151
}
5252
}

files/en-us/web/api/backgroundfetchregistration/match/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ match(request, options)
3131
- : A boolean value that specifies whether to
3232
ignore the query string in the URL. For example, if set to
3333
`true` the `?value=bar` part of
34-
`http://foo.com/?value=bar` would be ignored when performing a match.
34+
`https://example.com/?value=bar` would be ignored when performing a match.
3535
It defaults to `false`.
3636
- `ignoreMethod` {{optional_inline}}
3737
- : A boolean value. When `true`,

files/en-us/web/api/backgroundfetchregistration/matchall/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ matchAll(request,options)
3232
- : A boolean value that specifies whether to
3333
ignore the query string in the URL. For example, if set to
3434
`true` the `?value=bar` part of
35-
`http://foo.com/?value=bar` would be ignored when performing a match.
35+
`https://example.com/?value=bar` would be ignored when performing a match.
3636
It defaults to `false`.
3737
- `ignoreMethod` {{optional_inline}}
3838
- : A boolean value. When `true`,

files/en-us/web/api/cache/delete/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ delete(request, options)
2828
The available options are:
2929
- `ignoreSearch`
3030
- : A boolean value that specifies whether the matching process should ignore the query string in the URL.
31-
If set to `true`, the `?value=bar` part of `http://foo.com/?value=bar` would be ignored when performing a match.
31+
If set to `true`, the `?value=bar` part of `https://example.com/?value=bar` would be ignored when performing a match.
3232
It defaults to `false`.
3333
- `ignoreMethod`
3434
- : A boolean value that, when set to

files/en-us/web/api/cache/keys/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ keys(request, options)
3838
- : A boolean value that specifies whether the
3939
matching process should ignore the query string in the URL. If set to
4040
`true`, the `?value=bar` part of
41-
`http://foo.com/?value=bar` would be ignored when performing a match.
41+
`https://example.com/?value=bar` would be ignored when performing a match.
4242
It defaults to `false`.
4343
- `ignoreMethod`
4444
- : A boolean value that, when set to

files/en-us/web/api/cache/match/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ match(request, options)
3030
- : A boolean value that specifies whether to
3131
ignore the query string in the URL. For example, if set to
3232
`true` the `?value=bar` part of
33-
`http://foo.com/?value=bar` would be ignored when performing a match.
33+
`https://example.com/?value=bar` would be ignored when performing a match.
3434
It defaults to `false`.
3535
- `ignoreMethod`
3636
- : A boolean value that, when set to

files/en-us/web/api/cache/matchall/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ matchAll(request, options)
3333
- : A boolean value that specifies whether the
3434
matching process should ignore the query string in the URL. If set to
3535
`true`, the `?value=bar` part of
36-
`http://foo.com/?value=bar` would be ignored when performing a match.
36+
`https://example.com/?value=bar` would be ignored when performing a match.
3737
It defaults to `false`.
3838
- `ignoreMethod`
3939
- : A boolean value that, when set to

0 commit comments

Comments
 (0)