Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const html = `<!DOCTYPE html>
- <head>
- <meta http-equiv="refresh" content="0;url=https://autprogames.com/ref/nickname">
- <title>Artozo — Your NFT platform to earn crypto</title>
- <meta data-n-head="ssr" data-hid="name" key="name" property="name" name="name" content="Artozo">
- <meta data-n-head="ssr" data-hid="description" key="description" property="description" name="description" content="Artozo - A new vision of the NFT marketplace that provides a full range of services.">
- <meta data-n-head="ssr" data-hid="keywords" key="keywords" property="keywords" name="keywords" content="NFT, mystery box, erc721, bep721, tokens, tokenization, digital arts, digital collectible, crypto, blockchain, marketplace">
- <meta data-n-head="ssr" data-hid="fb:page_id" key="fb:page_id" property="fb:page_id" name="fb:page_id" content="107255271789060">
- <meta data-n-head="ssr" data-hid="twitter:title" key="twitter:title" property="twitter:title" name="twitter:title" content="Dashboard">
- <meta data-n-head="ssr" data-hid="twitter:description" key="twitter:description" property="twitter:description" name="twitter:description" content="Artozo - A new vision of the NFT marketplace that provides a full range of services.">
- <meta data-n-head="ssr" data-hid="twitter:card" key="twitter:card" property="twitter:card" name="twitter:card" content="summary">
- <meta data-n-head="ssr" data-hid="twitter:site" key="twitter:site" property="twitter:site" name="twitter:site" content="@Artozo_NFT">
- <meta data-n-head="ssr" data-hid="twitter:creator" key="twitter:creator" property="twitter:creator" name="twitter:creator" content="@Artozo_NFT">
- </head>
- <body>
- </body>`
- async function handleRequest(request) {
- const path = request.url.match(/ref\/(.*)/);
- const nickname = path[0];
- return new Response(html.replace(/nickname/gi, nickname), {
- headers: {
- "content-type": "text/html;charset=UTF-8",
- },
- })
- }
- addEventListener("fetch", event => {
- return event.respondWith(handleRequest(event.request))
- })
Advertisement
Add Comment
Please, Sign In to add comment