-
-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not follow links that have attribute set to
- Loading branch information
1 parent
5b29aac
commit 66ca6b3
Showing
4 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
let app = require('express')(); | ||
|
||
app.get('/', function (request, response) { | ||
response.end('<a href="/link1">Link1</a><a href="/link2">Link2</a><a href="dir/link4">Link4</a><a href="mailto:[email protected]">Email</a><a href="tel:123">Telephone</a>'); | ||
response.end('<a href="/link1">Link1</a><a href="/link2">Link2</a><a href="dir/link4">Link4</a><a href="mailto:[email protected]">Email</a><a href="tel:123">Telephone</a><a href="/nofollow" rel="nofollow">No follow</a>'); | ||
}); | ||
|
||
app.get('/link1', function (request, response) { | ||
|
@@ -14,6 +14,10 @@ app.get('/javascript', function (request, response) { | |
response.end('This page can only be reached if JavaScript is being executed'); | ||
}); | ||
|
||
app.get('/nofollow', function (request, response) { | ||
response.end('This page should not be crawler'); | ||
}); | ||
|
||
app.get('/link2', function (request, response) { | ||
response.end('You are on link2<a href="/link3">Link3</a><a href="http://sub.localhost:8080/subdomainpage">Subdomain</a><a href="http://subdomain.sub.localhost:8080/subdomainpage">Subdomain2</a>'); | ||
}); | ||
|