首页 \ 问答 \ 验证码:够了吗?(Captcha: is it enough?)

验证码:够了吗?(Captcha: is it enough?)

我正在实施重新验证码 。 我只是想知道是否必须花一些时间来实施CSRF,或者如果验证码消除了对CSRF保护的需求


I'm implementing re-captcha. And I'm just wondering if I have to spend some time implementing CSRF or if a captcha eliminates the need for the CSRF protection?


原文:https://stackoverflow.com/questions/21797989
更新时间:2022-09-05 13:09

最满意答案

在服务器端,侦听套接字仅与本地IP和端口关联,并处于LISTEN状态。

相反,服务器上接受的套接字(以及客户端上连接的套接字)由本地IP和端口以及远程IP和端口标识,并处于ESTABLISHED状态。

在客户端,服务器使用与连接的套接字分开的侦听套接字并不重要。 当客户端从connect返回时,服务器已经从accept并且从每个返回的套接字描述符可以相互通信。


On the server side, the listening socket is associated with only a local IP and port and is in the LISTEN state.

In contrast, accepted sockets on the server (as well as connected sockets on the client) are identified by a local IP and port as well as a remote IP and port and is in the ESTABLISHED state.

On the client side, it doesn't matter that the server uses a listening socket separate from the connected socket. By the time the client returns from connect, the server has returned from accept and the socket descriptors returned from each can communicate with each other.

相关问答

更多
  • 正如乔恩先前的回答中所提到的, load不能单独完成。 我更喜欢在ajax方法而不是beforeSend上使用headers选项: $.ajax({ url: "http//example.com", headers: { Accept: "application/whatever" // Use the actual type you need. }, success: function (data) { // Put the data in ...
  • 您的困惑在于认为套接字由服务器IP:服务器端口标识。 实际上,插座由四方信息唯一标识: Client IP : Client Port和Server IP : Server Port 所以当服务器IP和服务器端口在所有接受的连接中是不变的,客户端信息是什么允许它跟踪所有事情的发生。 澄清事情的例子: 假设我们有一个服务器在192.168.1.1:80和两个客户端,10.0.0.1和10.0.0.2。 10.0.0.1在本地端口1234上打开连接并连接到服务器。 现在服务器有一个套接字标识如下: 10.0.0 ...
  • 您可以使用droppable()作为函数进行accept ,并在里面指定您的条件: accept: function(e){ if(e.hasClass($(this).attr('title'))) return true; } 或更短: accept: function(e){ return e.hasClass($(this).attr('title')); } 谢谢。 You can make accept in droppable() as a function instead ...
  • 答案是:你的编译器是错误的。 检查gcc或clang或类似的,你会得到这样的东西: prog.cpp:在函数'int main()'中:prog.cpp:9:45:错误:从'std :: vector'类型的右值类型'std :: vector&'的非const引用无效初始化(矢量{2,1,3},矢量{3,1,2}); ^ prog.cpp:6:6:注意:初始化'void sort(A&,B&)[with A = std :: vector; B = std :: vector]'void sort(A&X ...
  • 像这样的东西: // Accepts a pointer to member function template unsigned int foo(Ret (T::*f)(ParamA, Params...)) { return sizeof...(Params); } // Accepts a pointer to const member function templ ...
  • 这可能是因为null 不是数值。 它是无效的; 它什么都没有,它肯定不等于整数0.如果你想检查一个数值,或者为null,那么这正是你应该做的: if( $yourvalue !== null && !is_numeric( $yourvalue ) ) { } That's probably because null isn't a numeric value. It's void; it's nothing, and it certainly doesn't equal the integer 0. I ...
  • 在服务器端,侦听套接字仅与本地IP和端口关联,并处于LISTEN状态。 相反,服务器上接受的套接字(以及客户端上连接的套接字)由本地IP和端口以及远程IP和端口标识,并处于ESTABLISHED状态。 在客户端,服务器使用与连接的套接字分开的侦听套接字并不重要。 当客户端从connect返回时,服务器已经从accept并且从每个返回的套接字描述符可以相互通信。 On the server side, the listening socket is associated with only a local I ...
  • 您的代码中存在拼写错误问题。 $("#target").droppable({ accept: "#Proof"; // <-- replace ';' by ',' drop: function (event, ui) {...} }); There is a typo issue in your code. $("#target").droppable({ accept: "#Proof"; // <-- replace ';' by ',' drop: functio ...
  • 我通过制作两个函数来检查不同的字段来解决它,但我不确定它为什么有效,我也不喜欢它,为什么在创建具有相同功能的函数时可以创建两个函数。 def checkTrapTransaction(): try: logUtb(f, 'Checking if Transaction type is trapped, making payment with Transaction type as empty') browser.find_by_id('submitBtn').fir ...
  • accept调用返回一个文件描述符,用于新连接。 从接受的手册页: 成功时,这些系统调用返回一个非负整数,它是接受套接字的描述符。 出错时,返回-1,并正确设置errno accept永远不会返回1,因为它是用于标准输出的文件描述符(除非您以编程方式关闭此文件描述符!)。 至于第二个问题: 如果接受功能将分配编号2,那么在再次分配编号1的连接数之后? accept将使用进程表中第一个未使用的文件描述符。 因此,一旦相关的TCP连接关闭,就可以重用相同的“返回号码”(文件描述符)。 The accept ca ...

相关文章

更多

最新问答

更多
  • 如何在Laravel 5.2中使用paginate与关系?(How to use paginate with relationships in Laravel 5.2?)
  • linux的常用命令干什么用的
  • 由于有四个新控制器,Auth刀片是否有任何变化?(Are there any changes in Auth blades due to four new controllers?)
  • 如何交换返回集中的行?(How to swap rows in a return set?)
  • 在ios 7中的UITableView部分周围绘制边界线(draw borderline around UITableView section in ios 7)
  • 使用Boost.Spirit Qi和Lex时的空白队长(Whitespace skipper when using Boost.Spirit Qi and Lex)
  • Java中的不可变类(Immutable class in Java)
  • WordPress发布查询(WordPress post query)
  • 如何在关系数据库中存储与IPv6兼容的地址(How to store IPv6-compatible address in a relational database)
  • 是否可以检查对象值的条件并返回密钥?(Is it possible to check the condition of a value of an object and JUST return the key?)
  • GEP分段错误LLVM C ++ API(GEP segmentation fault LLVM C++ API)
  • 绑定属性设置器未被调用(Bound Property Setter not getting Called)
  • linux ubuntu14.04版没有那个文件或目录
  • 如何使用JSF EL表达式在param中迭代变量(How to iterate over variable in param using JSF EL expression)
  • 是否有可能在WPF中的一个单独的进程中隔离一些控件?(Is it possible to isolate some controls in a separate process in WPF?)
  • 使用Python 2.7的MSI安装的默认安装目录是什么?(What is the default installation directory with an MSI install of Python 2.7?)
  • 寻求多次出现的表达式(Seeking for more than one occurrence of an expression)
  • ckeditor config.protectedSource不适用于editor.insertHtml上的html元素属性(ckeditor config.protectedSource dont work for html element attributes on editor.insertHtml)
  • linux只知道文件名,不知道在哪个目录,怎么找到文件所在目录
  • Actionscript:检查字符串是否包含域或子域(Actionscript: check if string contains domain or subdomain)
  • 将CouchDB与AJAX一起使用是否安全?(Is it safe to use CouchDB with AJAX?)
  • 懒惰地初始化AutoMapper(Lazily initializing AutoMapper)
  • 使用hasclass为多个div与一个按钮问题(using hasclass for multiple divs with one button Problems)
  • Windows Phone 7:检查资源是否存在(Windows Phone 7: Check If Resource Exists)
  • 无法在新线程中从FREContext调用getActivity()?(Can't call getActivity() from FREContext in a new thread?)
  • 在Alpine上升级到postgres96(/ usr / bin / pg_dump:没有这样的文件或目录)(Upgrade to postgres96 on Alpine (/usr/bin/pg_dump: No such file or directory))
  • 如何按部门显示报告(How to display a report by Department wise)
  • Facebook墙贴在需要访问令牌密钥后无法正常工作(Facebook wall post not working after access token key required)
  • Javascript - 如何在不擦除输入的情况下更改标签的innerText(Javascript - how to change innerText of label while not wiping out the input)
  • WooCommerce / WordPress - 不显示具有特定标题的产品(WooCommerce/WordPress - Products with specific titles are not displayed)