Tag Archives: code

Could Not Open Socket reCAPTCHA Error

After months of receiving spam through my contact forms I decided it was time to add reCAPTCHA to them in the hope of stemming the tide of garbage. This now under the control of Google I thought there wasn’t going to be an issue with this. Having just installed reCAPTCHA on my works websites I knew what to do and all went well on those sites. On the Friday I did 3 forms on my own sites and all worked as expected, on the Saturday I did the last form I had, but that one didn’t work. All I kept getting was a ‘could not open socket’ error.

Initially I thought I must have made some error in the code but after checking the code against that which I had done the day before I could see no error. And more over the 3 forms I did the day before that worked, now no longer worked and displayed the same error message, what the hell?? Most frustrating was the fact that this was all the message said and gave no clue as to what was causing it. I made a number of attempts to find which section of code that was at fault by adding echo’s throughout the php code but none of them showed, only that damned error message. I thought there must be something wrong with the server.

Someone must have had this issue before so I turned my attention to Google for an answer. As I started to type ‘could not open socket’ the autocomplete came up with ‘could not open socket recaptcha’, ah ha! But I couldn’t think why it could have worked yesterday and not today? After reading many unhelpful posts’ I found this: http://code.google.com/p/recaptcha/issues/detail?id=26 which although didn’t have the exact answer it did help me to realise the answers to my own issues.

After reading through this thread I came to the conclusion that my problem was 2 fold and explained why it had worked yesterday and not today. The main problem was my web host, in their attempt to be helpful they introduced (a long time back) blocking of outgoing connections to remote IPs from within my sites. This is one to be aware of if you are auto blogging using wp-o-matic, any feed you add will most likely be blocked by this until you add the IP to the allowed list from within your control panel.

I assume there is a good reason for them doing this but it can imagine it has caused nightmares for the inexperienced. Obviously it had worked yesterday because it was new, once the server knew the connection was being made it blocked it. It was probably the number of tests I did that made the connection get noticed and was possibly a good job it was noticed so quickly or I might not have noticed it for some time.

So which IP was I to add to the allowed list? The line of code in recaptchalib.php identified as the problem in the above thread was:

define(“RECAPTCHA_VERIFY_SERVER”, www.google.com);

So what I needed was the IP of google.com.

Could Not Open Socket reCAPTCHA Error

After months of receiving spam through my contact forms I decided it was time to add reCAPTCHA to them in the hope of stemming the tide of garbage. This now under the control of Google I thought there wasn’t going to be an issue with this. Having just installed reCAPTCHA on my works websites I knew what to do and all went well on those sites. On the Friday I did 3 forms on my own sites and all worked as expected, on the Saturday I did the last form I had, but that one didn’t work. All I kept getting was a ‘could not open socket’ error.

Initially I thought I must have made some error in the code but after checking the code against that which I had done the day before I could see no error. And more over the 3 forms I did the day before that worked, now no longer worked and displayed the same error message, what the hell?? Most frustrating was the fact that this was all the message said and gave no clue as to what was causing it. I made a number of attempts to find which section of code that was at fault by adding echo’s throughout the php code but none of them showed, only that damned error message. I thought there must be something wrong with the server.

Someone must have had this issue before so I turned my attention to Google for an answer. As I started to type ‘could not open socket’ the autocomplete came up with ‘could not open socket recaptcha’, ah ha! But I couldn’t think why it could have worked yesterday and not today? After reading many unhelpful posts’ I found this: http://code.google.com/p/recaptcha/issues/detail?id=26 which although didn’t have the exact answer it did help me to realise the answers to my own issues.

After reading through this thread I came to the conclusion that my problem was 2 fold and explained why it had worked yesterday and not today. The main problem was my web host, in their attempt to be helpful they introduced (a long time back) blocking of outgoing connections to remote IPs from within my sites. This is one to be aware of if you are auto blogging using wp-o-matic, any feed you add will most likely be blocked by this until you add the IP to the allowed list from within your control panel.

I assume there is a good reason for them doing this but it can imagine it has caused nightmares for the inexperienced. Obviously it had worked yesterday because it was new, once the server knew the connection was being made it blocked it. It was probably the number of tests I did that made the connection get noticed and was possibly a good job it was noticed so quickly or I might not have noticed it for some time.

So which IP was I to add to the allowed list? The line of code in recaptchalib.php identified as the problem in the above thread was:

define(“RECAPTCHA_VERIFY_SERVER”, www.google.com);

So what I needed was the IP of google.com.

Great security measures of Code Signing Certificates

Code signing certificates are certificates that distinguish specific applications, like ActiveX controls from totally different websites, as valid and trustworthy. This can be done by confirming authenticity of the presented content or applications and is executed when a user installs software or ActiveX controls. These code signing certificates offer wonderful security measures.

One security feature is that the certificates make sure that the identity of the presented content is valid. A notification is given if the programmer who distributed the content is questionable. As an example, a user prefers to grasp when content is from an anonymous supply. Damage will occur to the pc if the supply of the knowledge is questionable.

Another security feature is code signing certificates that verify the derivation of the software or content code. This blocks hackers from inserting false programs on sites for users to download that are extremely viruses or malware. This permits for secure downloads and offers a laptop protection from damage.

A third security advantage is that since code signing certificates are renowned lately, common websites are known to use these certificates. Guests to the sites grasp these websites are trusted. It provides peace of mind when surfing the web and will even enable fewer occurrences of compromise to laptop security when browsing totally different sites.

Lastly, since some websites have payment choices and raise for private info like social security numbers or MasterCard numbers, it’s necessary for purchasers to grasp that the web site on that this info is entered is valid and trustworthy. It’s known that hackers will build mirror pages that mimic these same pages that may enable them to steal personal info. Code signing certificates additionally forestall this from happening.

The overall advantage of code signing certificates is clear in regard to those security measures. They supply a stronger net expertise and assurance that laptop security and private info is safe.

Digital code signing certificate contains proof of content reliability in order that your worth can’t be modified and allotted with unapproved changes. If the hash used to sign the program suits the hash on a downloadable program, the worth reliability is complete. If the hash used doesn’t go, customers encounter a protection caution or the worth is not ready to acquire. Some code signing certificates are embrace an optional accessible to timestamp and provides the lifespan of your digital signatures. Your Code can stay valid even though your code singing certificate expires, as a result of the validity of the code signing certificate at the time of the digital signature may be verified.

Symantec, Thawte and Comodo are the many supply for JAVA, ADOBE Air, Microsoft Authenticode, Microsoft workplace VBA and Android Code Singing Certificates.