iT邦幫忙

第 12 屆 iThome 鐵人賽

DAY 28
0
Modern Web

從coding到上線-打造自己的blog系統系列 第 28

Day28 DNS Server與服務

DNS

非工商,但是買Domain我只推薦cloud flare,原因是不會收額外的手續費,比
GoDaddy第一年還便宜,不過要先辦好會員才能買

辦好帳號後,點新增網站
https://ithelp.ithome.com.tw/upload/images/20200928/20124291cMPEPksk7Y.png
https://ithelp.ithome.com.tw/upload/images/20200928/20124291nO9oydyNcX.png

輸入你想要的domain
https://ithelp.ithome.com.tw/upload/images/20200928/20124291A4ufBwJqMD.png
https://ithelp.ithome.com.tw/upload/images/20200928/20124291iqaFbT9lqb.png

還有篇幅,來介紹一下cloudflare的功能,點擊你的網址即可

https://ithelp.ithome.com.tw/upload/images/20200928/201242916OhxS3j3WI.png

在DNS可以設定www等domain到我們的外部IP
https://ithelp.ithome.com.tw/upload/images/20200928/20124291lhEjUWcKRA.png

DNSSE是用來證明domain是對應到我們的IP位置,而不是駭客的IP
https://ithelp.ithome.com.tw/upload/images/20200928/20124291Ww0a17P9n5.png

沒有憑證的話可以選擇彈性,讓cloudflare可以幫忙做出有https的網站
https://ithelp.ithome.com.tw/upload/images/20200928/201242911HhJhj2oxG.png

但是不建議這麼做,實際上這樣在cloudflare到我們主機間沒有加密,駭客依然可以監聽這一段的資料,至少也要選擇完整在我們的主機使用自簽憑證,明天會介紹如何免費做出嚴格憑證

如果有使用驗證的憑證會在這邊顯示
https://ithelp.ithome.com.tw/upload/images/20200928/20124291hGebc8TyGP.png

建議打開這個
https://ithelp.ithome.com.tw/upload/images/20200928/20124291gmamJSI2Iv.png

其他功能概覽
https://ithelp.ithome.com.tw/upload/images/20200928/20124291UFBKZzSkH1.png
https://ithelp.ithome.com.tw/upload/images/20200928/20124291qqzrB3Yz4c.png

在speed有幾個功能可以免費使用
https://ithelp.ithome.com.tw/upload/images/20200928/20124291VU9WRyQLgW.png
https://ithelp.ithome.com.tw/upload/images/20200928/20124291SIDaxZffZK.png

如果要做手機專用的網頁也可以在這裡設定
https://ithelp.ithome.com.tw/upload/images/20200928/20124291pEoA0GZDxk.png

caching
https://ithelp.ithome.com.tw/upload/images/20200928/20124291SsFS7sRHAU.png
https://ithelp.ithome.com.tw/upload/images/20200928/20124291tU5konyXsI.png

前面提到的設定可以在網頁規則對個別網址進行設定
https://ithelp.ithome.com.tw/upload/images/20200928/201242915ptuIAxtcD.png
https://ithelp.ithome.com.tw/upload/images/20200928/20124291kwkFOx9CnA.png

網路
https://ithelp.ithome.com.tw/upload/images/20200928/20124291fT8mg1xMoq.png
https://ithelp.ithome.com.tw/upload/images/20200928/20124291s4sGVzkyH2.png

免費版只能使用100MB的上傳量,這點要注意
https://ithelp.ithome.com.tw/upload/images/20200928/20124291HCjlZHt3Qh.png

剩下的幾個功能要錢,跳到應用程式,可以幫網頁添加一些功能
https://ithelp.ithome.com.tw/upload/images/20200928/20124291gpxZGBqpmW.png

Scrape Shield建議全部打開
https://ithelp.ithome.com.tw/upload/images/20200928/20124291Iy466esaTk.png
Hotlink保護:如果別的網頁直接將src連到你網頁的圖片,在他那邊不會顯示,這是避免別人直接爬蟲將你整個html文本複製貼上在自己的網頁,至少圖片還不會被偷走。


上一篇
Day27 建置虛擬機
下一篇
Day29 acm.sh 免費SSL憑證
系列文
從coding到上線-打造自己的blog系統31
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言