WordPress changes HTML code of the page

Sometimes, we need to implement an external HTML code or specify HTML by design inside a WordPress page.

When we use the text editor of WordPress we have the option to do just that, but if we look closely on the HTML that is generated after the specific page is rendered, we can see some alteration to the code. Those alterations may cause a lot of problems if you build your design (CSS) by it.  Usually, it comes to Ps that are added,  page breaks or other unnecessary elements. Read more of a function tells WordPress to skip this parsing of the HTML and leave it intact.

(more…)

Prevent cookie hijacking (session hacking)

First of all, what is “Cookie Hijacking”?

By Wikipedia, it’s an “exploitation of a valid computer session to gain unauthorized access to information or services in a computer system. In particular, it is used to refer to the theft of a magic cookie used to authenticate a user to a remote server”.

Which basically means, gaining access to an information system or a website without logging in, as the user that the cookie (or session) belongs to him.

(more…)

Send Email on ESP8266 with Arduino

Sending an email is probably the most convenient way of communicating data or informing us of an event from our ESP8266. It’s cross-platform, works on every device and very reliable. It can alert us when one of the sensors detected something (PIR sensor for movement, MQ2 for air quality or any other environmental sensor).
There are a few ways to get that done, and in this post, I’ll show you my preferable way.

(more…)

Add two-step authentication to WordPress

WordPress is a very popular platform, and I have had many WordPress installations over the years (even this site is based on it).
Being that popular has made this platform a target for many hackers. And even though it keeps updating and upgrading, over the years I found myself a victim of hostile takeovers.

In this article, I’ll discuss and demonstrate how to add two-step authentication as an extra level of security to your site or blog.

(more…)