Breaking

Bảo mật cùng Cloudflare và Incapsula

Bảo mật cùng Cloudflare và Incapsula

Tại sao mình đã chọn sử dụng Cloudflare (phần cài đặt xem tại đây)

Nhân tiện cho những bạn nào chưa biết về dịch vụ này thì mình cũng xin liệt kê vài lý do mà mình sử dụng Cloudflare để cho bạn biết bản chất dịch vụ này là thế nào. Một số lý do quan trọng để mình dùng Cloudflare là:
  • Hỗ trợ ẩn IP thật của máy chủ gốc vì nhiều lý do bảo mật.
  • Hỗ trợ tăng tốc website tuyệt đối với tính năng lưu cache các file tĩnh.
  • Tăng tốc thêm bội phần nhờ tính năng CDN được tích hợp vào nó.
  • Theo dõi và phân loại những lượt truy cập đi vào để biết có bao nhiêu con bot đã vào blog mình.
  • [Update] Hỗ trợ SSL hoàn toàn miễn phí.
Chỉ vậy thôi, ngoài ra Cloudflare còn hỗ trợ chống DDOS khá tốt nhưng do blog mình chưa bị DDOS nên chưa có dịp trải nghiệm.
Thật sự khách quan mà nói, Cloudflare hỗ trợ tăng tốc website khá là tốt và hệ thống DNS của nó cũng cập nhật rất nhanh nên nếu lỗi đáng tiếc kia không xảy ra thì mình sẽ còn phụ thuộc vào nó dài dài.

Cloudflare lỗi, chọn ai để thay thế?

Như tiêu đề mình đã nói rõ, đó chính là dịch vụ tương tự có tên Incapsula mà mình đã có dịp biết cách đây gần tròn 1 năm nhưng mãi đến tận bây giờ mới thật sự sử dụng chính thức.

Giới thiệu Incapsula

Incapsula là một dịch vụ hỗ trợ bạn bảo mật website toàn diện bằng việc thiết lập tường lửa thông minh tự nhận diện các hình thức tấn công để phòng chống như DDoS, SQL Injection, XSS, Spam Bot và khai thác lỗi trên website. Ngoài ra, Incapsula còn hỗ trợ một tính năng mới khá hay để bảo mật nữa đó là yêu cầu chứng thực tài khoản qua email, tin nhắn vào một thư mục nào đó khi có người lạ truy cập vào, tương tự như tính năng bảo mật 2 lớp của Gmail.
Dĩ nhiên, các dịch vụ này luôn không bao giờ thiếu các tính năng hỗ trợ việc tăng tốc và tối ưu hóa websitenhờ việc nén cache để lưu trực tiếp trên máy chủ Incapsula và cho phép sử dụng CDN để dù khách truy cập ở bất cứ nơi nào trên thế giới cũng đều đạt được tốc độ tốt nhất.
Hiện tại, Incapsula có hỗ trợ gói miễn phí mà với gói này bạn có thể sử dụng tính năng Login Protected và được sử dụng CDN, bảo mật cơ bản. Còn nếu bạn muốn sử dụng tính năng lưu cache của nó thì bạn cần phải trả ít nhất là $19/tháng, còn nếu muốn dùng tường lửa để chặn SQL Injection, XSS,…thì phải trả phí là $59/tháng và $299/tháng nếu bạn cần tính năng chống DDoS.

Nhược điểm của Incapsula

  • Không hỗ trợ cache cho tài khoản miễn phí.
  • Ít addon hơn Cloudflare.
  • Không hỗ trợ tính năng quản lý DNS động như Cloudflare.
  • Không hỗ trợ tính năng Development Mode, mỗi lần chỉnh giao diện bạn phải Purge Cache một cái.
  • Thời gian thêm website hơi lâu vì phải đợi nó quét DNS của tên miền, tầm 3 giờ.

Hướng dẫn sử dụng Incapsula

Khác với Cloudflare là bạn cần đổi DNS của domain, với Incapsula nó sẽ cần bạn sửa record A và CNAME của domain cần sử dụng. Thường là mỗi nhà cung cấp domain hoặc host đều hỗ trợ bạn sửa các record này, hoặc nếu bạn chưa biết thì có thể sử dụng dịch vụ DNS trung gian như cpanel.com.vn hay vdns.vn để có thể sửa các record trong domain.
Do nhiều người mua tên miền ở Godaddy nên trong bài này mình sẽ hướng dẫn sử với tên miền Godaddy nhé.
Đầu tiên bạn vào trang quản lý domain ở Godaddy và chuyển DNS của domain về dạng standard, tức là dùng Nameserver của Godaddy.
Bây giờ hãy đăng ký tài khoản Incapsula miễn phí và kích hoạt tài khoản, sau đó vào https://my.incapsula.com/admin/login đăng nhập vào nhé.
Ngay tại Dashboard có chỗ để bạn thêm website vào, hãy nhập tên miền website của bạn (không có http:// và www) vào đó rồi ấn nút Add Website nhé. Sau khi add nó sẽ kiểm tra và lấy các thông tin của domain bạn về để đối chứng.
huong-dan-incapsula-3
Cứ thế mà ấn Continue nhé. Lúc này nó sẽ đưa bạn tới bước quan trọng nhất, đó là đổi IP trỏ về của host và tạo thêm CNAME cho nó.
huong-dan-incapsula-4
Cập nhật DNS cho tên miền để sủ dụng Incapsula
Như ảnh trên, bạn thấy là nó kêu bạn:
  • Tạo một record A với tên là domain-cua-ban.com và giá trị là IP 199.83.129.108.
  • Tạo một thẻ A với tên là domain-cua.ban.com và giá trị là 199.83.131.220
  • Tạo một thẻ CNAME với tên là www và giá trị là i4tj6.x.incapdns.net
Hãy lưu ý rằng đối với 2 IP nó cung cấp, có thể không ai giống ai nên bạn nhớ đọc kỹ khi làm nhé.
Bây giờ chui vào lại Godaddy, vào trang quản lý domain của bạn và chọn DNS Zone File.
huong-dan-incapsula-5
Sửa DNS của tên miền tại Godaddy.
Tiếp tục ấn vào Edit trong đó.
huong-dan-incapsula-6
Sau đó các bạn sửa lại DNS giống như thế này.
huong-dan-incapsula-7
Sửa DNS Zone cho Incapsula
Sau khi sửa và lưu lại xong hết. Hãy quay lại trang của Incapsula và ấn vào nút I completed the DNS changesđể hoàn tất. Bây giờ bạn hãy cho nó thời gian để cập nhật domain là xong.
huong-dan-incapsula-9
Incapsula sẽ đợi để cập nhật sự thay đổi DNS ở domain
Khi nó cập nhật xong sẽ có mail gửi qua email của bạn để thông báo nên cứ yên tâm nhé. Sau khi nó cập nhật xong thì bạn mới có thể sử dụng các tính năng bên trong nó.
Cuối cùng, bạn nhấp vào website của bạn ở Dashboard, chuyển qua mục Setting -> General và điền đúng IP của host bạn đang dùng vào. Vì nếu mặc định, nó sẽ lấy IP của nhà cung cấp DNS trung gian (nếu bạn có dùng) nên sẽ không truy cập vào website được.
huong-dan-incapsula-10

Hướng dẫn sử dụng Login Protected

Tính năng này chính là tính năng bảo vệ thư mục/tập tin mà mình đã nhắc ở trên. Để cài đặt, hãy click vào website của bạn ngay tại Dashboard, sau đó vào phần Settings và chọn Login Protected.
huong-dan-incapsula-11
Sau đó bạn ấn vào nút Enable phía trên để kích hoạt. Tiếp đến là kéo xuống dưới ngay phần Authorized Users và ấn nút Add User.
huong-dan-incapsula-12
Thêm user vào Login Protected
Sở dĩ bạn cần Add User là do tính năng này sẽ không lấy tài khoản Incapsula của bạn mà chỉ hoạt động với tài khoản tự thêm riêng cho tính năng này để bảo mật.
Sau khi ấn vào Add User, nó sẽ xuất hiện ra một cửa sổ popup để gửi mail, bạn nhập email cần tạo user vào dòng To và sau đó ấn Send.
huong-dan-incapsula-13
Thêm user vào Login Protected
Rồi vào hộp thư của bạn để kích hoạt user.
huong-dan-incapsula-14
Kích hoạt tạo User
Rồi nhập tên và nhấn I’m Done. Nếu bạn muốn sử dụng tính năng Google Authenticator thì hãy dùng app đọc QRCode quét cái mã QRCode bên dưới để lấy mã số kích hoạt, không thì bỏ trống cũng được.
huong-dan-incapsula-15
Kích hoạt User sử dụng Login Protected
Bây giờ quay lại phần Login Protected trong Settings, tìm tới phần Authorized Users và chọn Select authorized user from list và đánh dấu vào user mà bạn vừa mới tạo.
huong-dan-incapsula-16
Chọn User sử dụng Login Protected
Tiếp đó bạn kéo lên trên, tìm phần Protected Pages và ấn Add Page để thêm tập tin/thư mục cần bảo vệ. Ví dụ mình muốn bảo vệ thư mục wp-admin thì mình điền như sau:
huong-dan-incapsula-17
Sau đó bạn ấn nút Save bên trên và đợi khoảng 5 phút sẽ bắt đầu có hiệu lực.
Lúc này khi bạn truy cập lần đầu tiên vào thư mục đã được bảo vệ thì nó sẽ đòi bạn nhập email và mã số bí mật, bạn cứ điền email vào nhưng sau đó hãy click vào nút E-Mail Me để nó gửi mã bí mật qua email.
sua-ip-incapsula
Nhận mã kích hoạt qua email
Sau đó bạn vào mail và lấy mã kích hoạt rồi điền vào đó, ấn Submit là xong.

Lời kết

Như vậy bạn có thể thấy tuy rằng Incapsula có vẻ không được nhiều tính năng như Cloudflare do mới ra đời nhưng về sự ổn định thì mình thấy nó có vẻ rất tốt, ít nhất là mình không còn thấy xuất hiện lỗi DNS, không bị mất traffic sau hơn một tuần sử dụng nữa. Ngoài ra nó cũng hỗ trợ thêm tính năng bảo mật thư mục/tập tin rất an toàn và bước này có thể làm chùn lòng bất cứ bạn hacker nào nếu có ý định oanh tặc website của bạn.

69 comments:

  1. I'm not sure why but this web site is loading extremely slow for me. Is anyone else having this problem or is it a problem on my end? I'll check back later and see if the problem still exists.

    ReplyDelete
  2. I was able to find good info from your content.

    ReplyDelete
  3. If you desire to grow your experience simply keep visiting this web site and be updated with the latest gossip posted here.

    ReplyDelete
  4. Hey there! I know this is kind of off-topic but I needed to ask. Does managing a well-established blog like yours take a lot of work? I'm completely new to operating a blog however I do write in my journal every day. I'd like to start a blog so I can share my personal experience and thoughts online. Please let me know if you have any suggestions or tips for brand new aspiring bloggers. Thankyou!

    ReplyDelete
  5. I do not know if it's just me or if everyone else experiencing issues with your website. It looks like some of the text within your posts are running off the screen. Can somebody else please provide feedback and let me know if this is happening to them as well? This might be a problem with my browser because I've had this happen previously. Cheers

    ReplyDelete
  6. I know this website provides quality depending content and additional information, is there any other website which gives these kinds of things in quality?

    ReplyDelete
  7. I'm not sure where you're getting your info, but good topic. I needs to spend some time learning much more or understanding more. Thanks for magnificent information I was looking for this information for my mission.

    ReplyDelete
  8. Thank you for another magnificent article. Where else may anyone get that type of info in such an ideal approach of writing? I've a presentation next week, and I am at the look for such info.

    ReplyDelete
  9. I do not even know how I ended up here, but I thought this post was good. I do not know who you are but definitely you're going to a famous blogger if you aren't already ;) Cheers!

    ReplyDelete
  10. You really make it seem so easy with your presentation but I find this matter to be actually something which I think I would never understand. It seems too complex and extremely broad for me. I am looking forward for your next post, I'll try to get the hang of it!

    ReplyDelete
  11. I know this if off topic but I'm looking into starting my own weblog and was curious what all is required to get set up? I'm assuming having a blog like yours would cost a pretty penny? I'm not very internet savvy so I'm not 100% positive. Any recommendations or advice would be greatly appreciated. Kudos

    ReplyDelete
  12. I enjoy what you guys are up too. This type of clever work and reporting! Keep up the awesome works guys I've you guys to blogroll.

    ReplyDelete
  13. Hello there! I know this is kind of off topic but I was wondering which blog platform are you using for this website? I'm getting fed up of Wordpress because I've had problems with hackers and I'm looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform.

    ReplyDelete
  14. That is very attention-grabbing, You're an excessively professional blogger. I've joined your rss feed and sit up for in the hunt for more of your fantastic post. Also, I have shared your website in my social networks

    ReplyDelete
  15. Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you could do with a few pics to drive the message home a little bit, but instead of that, this is magnificent blog. An excellent read. I'll certainly be back.

    ReplyDelete
  16. Awesome! Its actually amazing post, I have got much clear idea regarding from this paragraph.

    ReplyDelete
  17. Way cool! Some extremely valid points! I appreciate you writing this post and the rest of the website is really good.

    ReplyDelete
  18. Hi there, I enjoy reading through your article post. I wanted to write a little comment to support you.

    ReplyDelete
  19. Hey there! This is my first visit to your blog! We are a team of volunteers and starting a new project in a community in the same niche. Your blog provided us beneficial information to work on. You have done a extraordinary job!

    ReplyDelete
  20. I'm curious to find out what blog platform you are utilizing? I'm having some small security problems with my latest site and I would like to find something more safe. Do you have any suggestions?

    ReplyDelete
  21. I was wondering if you ever thought of changing the structure of your blog? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two pictures. Maybe you could space it out better?

    ReplyDelete
  22. I don't know if it's just me or if everybody else experiencing problems with your website. It appears like some of the written text on your posts are running off the screen. Can somebody else please comment and let me know if this is happening to them too? This might be a issue with my web browser because I've had this happen before. Appreciate it

    ReplyDelete
  23. Do you have a spam problem on this website; I also am a blogger, and I was curious about your situation; many of us have created some nice methods and we are looking to trade solutions with other folks, why not shoot me an e-mail if interested.

    ReplyDelete
  24. My programmer is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the expenses. But he's tryiong none the less. I've been using Movable-type on various websites for about a year and am concerned about switching to another platform. I have heard very good things about blogengine.net. Is there a way I can import all my wordpress posts into it? Any kind of help would be really appreciated!

    ReplyDelete
  25. I've been exploring for a little for any high-quality articles or weblog posts in this sort of space . Exploring in Yahoo I eventually stumbled upon this website. Studying this information So i am happy to convey that I have an incredibly good uncanny feeling I found out just what I needed. I so much undoubtedly will make certain to do not overlook this website and give it a glance on a relentless basis.

    ReplyDelete
  26. Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

    ReplyDelete
  27. Everything is very open with a very clear clarification of the challenges. It was really informative. Your website is extremely helpful. Many thanks for sharing!

    ReplyDelete
  28. What's up to every one, the contents present at this website are in fact remarkable for people experience, well, keep up the good work fellows.

    ReplyDelete
  29. Thanks in support of sharing such a fastidious idea, article is pleasant, thats why i have read it completely

    ReplyDelete
  30. Hi there, I discovered your blog by means of Google even as searching for a related topic, your web site came up, it looks great. I have bookmarked it in my google bookmarks.
    Hello there, simply became aware of your weblog via Google, and found that it's truly informative. I am going to watch out for brussels. I'll appreciate should you proceed this in future. Numerous folks will probably be benefited from your writing. Cheers!

    ReplyDelete
  31. I think what you published was actually very logical. But, what about this? what if you were to create a killer headline? I mean, I don't wish to tell you how to run your blog, however suppose you added a post title to maybe get a person's attention? I mean %BLOG_TITLE% is a little vanilla. You should look at Yahoo's home page and watch how they create article headlines to get viewers to click. You might add a video or a related picture or two to grab readers interested about what you've written. In my opinion, it would bring your posts a little livelier.

    ReplyDelete
  32. Hello i am kavin, its my first time to commenting anywhere, when i read this piece of writing i thought i could also create comment due to this brilliant piece of writing.

    ReplyDelete
  33. It's not my first time to visit this site, i am visiting this site dailly and take fastidious information from here daily.

    ReplyDelete
  34. If you are going for most excellent contents like me, only visit this site everyday for the reason that it offers feature contents, thanks

    ReplyDelete
  35. You actually make it seem so easy with your presentation but I find this matter to be really something which I think I would never understand. It seems too complicated and extremely broad for me. I am looking forward for your next post, I will try to get the hang of it!

    ReplyDelete
  36. You are so interesting! I do not think I have read anything like that before. So good to discover somebody with genuine thoughts on this topic. Seriously.. thank you for starting this up. This site is something that is required on the internet, someone with some originality!

    ReplyDelete
  37. Hi there to every single one, it's genuinely a fastidious for me to pay a quick visit this web site, it contains important Information.

    ReplyDelete
  38. It is not my first time to visit this site, i am browsing this website dailly and get good data from here every day.

    ReplyDelete
  39. I have been surfing on-line greater than three hours as of late, but I by no means found any fascinating article like yours. It's lovely worth enough for me. In my opinion, if all website owners and bloggers made good content material as you probably did, the web might be a lot more helpful than ever before.

    ReplyDelete
  40. Superb post however I was wondering if you could write a litte more on this subject? I'd be very thankful if you could elaborate a little bit more. Appreciate it!

    ReplyDelete
  41. When I initially commented I appear to have clicked the -Notify me when new comments are added- checkbox and now whenever a comment is added I recieve four emails with the exact same comment. Perhaps there is a way you can remove me from that service? Appreciate it!

    ReplyDelete
  42. I have to thank you for the efforts you have put in penning this website. I really hope to check out the same high-grade content by you later on as well. In truth, your creative writing abilities has motivated me to get my own, personal site now ;)

    ReplyDelete
  43. Very rapidly this website will be famous amid all blogging viewers, due to it's pleasant content

    ReplyDelete
  44. Hey there, You have done a great job. I will definitely digg it and personally suggest to my friends. I am confident they'll be benefited from this web site.

    ReplyDelete
  45. It's very effortless to find out any topic on web as compared to books, as I found this article at this web site.

    ReplyDelete
  46. Woah! I'm really enjoying the template/theme of this website. It's simple, yet effective. A lot of times it's very difficult to get that "perfect balance" between superb usability and appearance. I must say that you've done a fantastic job with this. In addition, the blog loads extremely quick for me on Chrome. Superb Blog!

    ReplyDelete
  47. Very good blog! Do you have any hints for aspiring writers? I'm planning to start my own site soon but I'm a little lost on everything. Would you advise starting with a free platform like Wordpress or go for a paid option? There are so many choices out there that I'm totally confused .. Any ideas? Bless you!

    ReplyDelete
  48. Hello! I'm at work surfing around your blog from my new apple iphone! Just wanted to say I love reading your blog and look forward to all your posts! Carry on the fantastic work!

    ReplyDelete
  49. Generally I don't read article on blogs, however I would like to say that this write-up very pressured me to try and do it! Your writing taste has been surprised me. Thank you, very nice article.

    ReplyDelete
  50. Heya i am for the first time here. I found this board and I find It truly useful & it helped me out much. I hope to give something back and aid others like you helped me.

    ReplyDelete
  51. Hey there would you mind letting me know which web host you're using? I've loaded your blog in 3 different internet browsers and I must say this blog loads a lot quicker then most. Can you recommend a good hosting provider at a honest price? Thank you, I appreciate it!

    ReplyDelete
  52. I think this is one of the most significant info for me. And i'm glad reading your article. But wanna remark on few general things, The website style is perfect, the articles is really nice : D. Good job, cheers

    ReplyDelete
  53. My developer is trying to convince me to move to .net from PHP. I have always disliked the idea because of the costs. But he's tryiong none the less. I've been using WordPress on various websites for about a year and am concerned about switching to another platform. I have heard good things about blogengine.net. Is there a way I can transfer all my wordpress content into it? Any help would be really appreciated!

    ReplyDelete
  54. Awesome! Its truly amazing post, I have got much clear idea regarding from this paragraph.

    ReplyDelete
  55. Hey there, I think your site might be having browser compatibility issues. When I look at your blog in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, very good blog!

    ReplyDelete
  56. hi!,I love your writing very a lot! share we keep in touch extra approximately your article on AOL? I require an expert on this house to resolve my problem. Maybe that's you! Taking a look ahead to look you.

    ReplyDelete
  57. whoah this weblog is wonderful i really like studying your posts. Stay up the great work! You already know, many people are looking around for this info, you could aid them greatly.

    ReplyDelete
  58. Hi there, this weekend is good designed for me, as this point in time i am reading this fantastic informative piece of writing here at my residence.

    ReplyDelete
  59. Having read this I believed it was rather informative. I appreciate you spending some time and energy to put this content together. I once again find myself spending a lot of time both reading and posting comments. But so what, it was still worthwhile!

    ReplyDelete
  60. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why waste your intelligence on just posting videos to your weblog when you could be giving us something informative to read?

    ReplyDelete
  61. Thanks for sharing your thoughts on %meta_keyword%. Regards

    ReplyDelete
  62. I really like what you guys are up too. Such clever work and reporting! Keep up the awesome works guys I've added you guys to my own blogroll.

    ReplyDelete
  63. Just wish to say your article is as astonishing. The clearness on your put up is simply nice and that i could think you are a professional in this subject. Well along with your permission let me to clutch your feed to keep up to date with imminent post. Thank you one million and please carry on the enjoyable work.

    ReplyDelete
  64. Have you ever thought about creating an ebook or guest authoring on other blogs? I have a blog centered on the same ideas you discuss and would really like to have you share some stories/information. I know my readers would appreciate your work. If you are even remotely interested, feel free to send me an e mail.

    ReplyDelete
  65. It's wonderful that you are getting ideas from this post as well as from our discussion made here.

    ReplyDelete
  66. Thank you, I have recently been looking for info approximately this subject for ages and yours is the greatest I have came upon till now. However, what in regards to the bottom line? Are you positive about the source?

    ReplyDelete
  67. If some one needs to be updated with latest technologies afterward he must be pay a quick visit this web page and be up to date all the time.

    ReplyDelete

Powered by Blogger.