diff --git a/src/scripts/auth-guard.js b/src/scripts/auth-guard.js
new file mode 100644
index 0000000..dc04043
--- /dev/null
+++ b/src/scripts/auth-guard.js
@@ -0,0 +1,7 @@
+(function () {
+ const token = localStorage.getItem("token");
+
+ if (!token && window.location.pathname !== "/") {
+ window.location.href = "/";
+ }
+})();
diff --git a/views/anime/anime.html b/views/anime/anime.html
index 7516825..bef54ba 100644
--- a/views/anime/anime.html
+++ b/views/anime/anime.html
@@ -155,6 +155,8 @@
+
+