<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.3">Jekyll</generator><link href="https://huong-dan.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://huong-dan.github.io/" rel="alternate" type="text/html" /><updated>2023-07-21T11:22:05+00:00</updated><id>https://huong-dan.github.io/feed.xml</id><title type="html">Hướng Dẫn</title><subtitle>Hướng Dẫn Về Công Nghệ</subtitle><entry><title type="html">Rút Gọn URL Miễn Phí Với Cloudflare Workers</title><link href="https://huong-dan.github.io/cloudflare/workers/2022/02/01/url-shortener-with-cloudflare-workers.html" rel="alternate" type="text/html" title="Rút Gọn URL Miễn Phí Với Cloudflare Workers" /><published>2022-02-01T01:00:00+00:00</published><updated>2022-02-01T01:00:00+00:00</updated><id>https://huong-dan.github.io/cloudflare/workers/2022/02/01/url-shortener-with-cloudflare-workers</id><content type="html" xml:base="https://huong-dan.github.io/cloudflare/workers/2022/02/01/url-shortener-with-cloudflare-workers.html">&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
  &lt;meta charset=&quot;utf-8&quot; /&gt;
    &lt;link rel=&quot;canonical&quot; href=&quot;https://huong-dan.github.io/url-shortener-cloudflare-workers/&quot; /&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,minimum-scale=1,initial-scale=1&quot; /&gt;
    &lt;meta name=&quot;description&quot; content=&quot;Hướng dẫn sử dụng Cloudflare Workers chi tiết để rút gọn url tùy chỉnh miễn phí 100%.&quot; /&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
    (function(c,l,a,r,i,t,y){
        c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
        t=l.createElement(r);t.async=1;t.src=&quot;https://www.clarity.ms/tag/&quot;+i;
        y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
    })(window, document, &quot;clarity&quot;, &quot;script&quot;, &quot;amc2apgl8x&quot;);

  &lt;/script&gt;
  &lt;!-- Begin Jekyll SEO tag v2.8.0 --&gt;
&lt;title&gt;Rút Gọn URL Miễn Phí Với Cloudflare Workers | Hướng Dẫn&lt;/title&gt;
&lt;meta name=&quot;generator&quot; content=&quot;Jekyll v3.9.3&quot; /&gt;
&lt;meta property=&quot;og:title&quot; content=&quot;Rút Gọn URL Miễn Phí Với Cloudflare Workers&quot; /&gt;
&lt;meta property=&quot;og:locale&quot; content=&quot;en_US&quot; /&gt;
&lt;meta name=&quot;description&quot; content=&quot;Hướng Dẫn Về Công Nghệ&quot; /&gt;
&lt;meta property=&quot;og:description&quot; content=&quot;Hướng Dẫn Về Công Nghệ&quot; /&gt;
&lt;link rel=&quot;canonical&quot; href=&quot;https://huong-dan.github.io/cloudflare/workers/2022/02/01/url-shortener-with-cloudflare-workers.html&quot; /&gt;
&lt;meta property=&quot;og:url&quot; content=&quot;https://huong-dan.github.io/cloudflare/workers/2022/02/01/url-shortener-with-cloudflare-workers.html&quot; /&gt;
&lt;meta property=&quot;og:site_name&quot; content=&quot;Hướng Dẫn&quot; /&gt;
&lt;meta property=&quot;og:type&quot; content=&quot;article&quot; /&gt;
&lt;meta property=&quot;article:published_time&quot; content=&quot;2022-02-01T01:00:00+00:00&quot; /&gt;
&lt;meta name=&quot;twitter:card&quot; content=&quot;summary&quot; /&gt;
&lt;meta property=&quot;twitter:title&quot; content=&quot;Rút Gọn URL Miễn Phí Với Cloudflare Workers&quot; /&gt;
&lt;script type=&quot;application/ld+json&quot;&gt;
{&quot;@context&quot;:&quot;https://schema.org&quot;,&quot;@type&quot;:&quot;BlogPosting&quot;,&quot;dateModified&quot;:&quot;2022-02-01T01:00:00+00:00&quot;,&quot;datePublished&quot;:&quot;2022-02-01T01:00:00+00:00&quot;,&quot;description&quot;:&quot;Hướng Dẫn Về Công Nghệ&quot;,&quot;headline&quot;:&quot;Rút Gọn URL Miễn Phí Với Cloudflare Workers&quot;,&quot;mainEntityOfPage&quot;:{&quot;@type&quot;:&quot;WebPage&quot;,&quot;@id&quot;:&quot;https://huong-dan.github.io/cloudflare/workers/2022/02/01/url-shortener-with-cloudflare-workers.html&quot;},&quot;url&quot;:&quot;https://huong-dan.github.io/cloudflare/workers/2022/02/01/url-shortener-with-cloudflare-workers.html&quot;}&lt;/script&gt;
&lt;!-- End Jekyll SEO tag --&gt;

  &lt;/head&gt;
&lt;div class=&quot;content card&quot;&gt;
&lt;h2 id=&quot;steps&quot;&gt;Các Bước Thực Hiện&lt;/h2&gt;
&lt;li&gt;Sau khi đã tạo tài khoản Cloudflare, vào mục &lt;a href=&quot;https://dash.cloudflare.com/sign-up/workers&quot;&gt;Workers&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Bạn chọn cho mình một subdomain, chọn gói miễn phí.&lt;/li&gt;
&lt;li&gt;Sau đó, chọn Create a Service.&lt;/li&gt;
&lt;img src=&quot;/assets/img/2022-02-01-url-shortener-with-cloudflare-workers/img1.png&quot; alt=&quot;Create a Service button&quot; /&gt;
&lt;li&gt;Đặt tên theo ý thích.&lt;/li&gt;
&lt;img src=&quot;/assets/img/2022-02-01-url-shortener-with-cloudflare-workers/img2.png&quot; alt=&quot;Service name&quot; /&gt; 
&lt;li&gt;Sau khi đã hoàn tất việc tạo một Worker (Service), bạn nhấn Quick edit ở trang quản lý Worker.
&lt;img src=&quot;/assets/img/2022-02-01-url-shortener-with-cloudflare-workers/img3.png&quot; alt=&quot;Quick edit button&quot; /&gt;
&lt;li&gt;Rồi dán vào đoạn mã dưới đây.&lt;/li&gt;
&lt;script src=&quot;https://gist.github.com/chupper100/401fef99f2e8200d021b2518c1e49b44.js&quot; width=&quot;300&quot; height=&quot;100&quot;&gt;&lt;/script&gt;
&lt;li&gt;Sau đó, nhấn &lt;strong&gt;Save and Deploy&lt;/strong&gt; và thưởng thức thành quả:)&lt;/li&gt;
&lt;h2 id=&quot;resources&quot;&gt;Resources&lt;/h2&gt;
&lt;li&gt;Nguồn tham khảo: &lt;a href=&quot;https://lucjan.medium.com/free-url-shortener-with-cloudflare-workers-125eaf87b1ec&quot;&gt;Lucjan Suski&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://developers.cloudflare.com/workers/examples/bulk-redirects&quot;&gt;Docs/Bulk redirects &lt;/a&gt;&lt;/li&gt;
&lt;div class=&quot;card discussion&quot;&gt;
    &lt;script src=&quot;https://giscus.app/client.js&quot; data-repo=&quot;Huong-Dan/huong-dan.github.io&quot; data-repo-id=&quot;R_kgDOG1g2lQ&quot; data-mapping=&quot;number&quot; data-term=&quot;11&quot; data-reactions-enabled=&quot;1&quot; data-emit-metadata=&quot;0&quot; data-input-position=&quot;top&quot; data-theme=&quot;dark&quot; data-lang=&quot;en&quot; crossorigin=&quot;anonymous&quot; async=&quot;&quot;&gt;
&lt;/script&gt;
&lt;/div&gt;
&lt;script&gt;
  document.querySelectorAll('img').forEach(e =&gt; {
    e.addEventListener(&quot;click&quot;, function(){
      window.location.href = e.src; 
    })
  })
&lt;/script&gt;
&lt;/li&gt;&lt;/div&gt;&lt;/html&gt;</content><author><name></name></author><category term="cloudflare" /><category term="workers" /><summary type="html"></summary></entry></feed>