我在我的新项目中广泛使用 Jquery 和 Javascript,包括表单验证,因为我不想使用 PHP 验证给服务器带来负担。
这不应该减轻重大负担。不过,它应该可以更快地向用户提供反馈,这很好。
因此,我限制在浏览器上禁用 Javascript 的人访问我的网站。
That is a waste of time. The proportion of submissions in that which will be from users with JS disabled will be tiny.
I am trying to redirect them using meta tag
That's a very user hostile thing to do.
I assume that this is safe because if javascript is not enabled they will not be able to access my site.
If you mean that it avoids the need to write server side validation routines, then you are wrong. If someone wants to attack the site (rather then submit bad data by accident) then they can construct HTTP requests manually.