Protect your Laravel-based websites from iframe embed

Protect your Laravel-based websites from iframe embed

Just another tip for the day, to protect your Laravel sites from iframe embed, use this hidden middleware, FrameGuard. IlluminateHttpMiddlewareFrameGuard::class What it does is simple, set...
Remove image border effects on RevealJS

Remove image border effects on RevealJS

On RevealJS presentation, when you add a new image to the slides, it will be decorated around with border settings. In case you want...
FastCGI

Get FastCGI post body data using C

FastCGI is basically not different from a regular CGI application, hence, you can get the post body content from stdin. However, we need to...
FastCGI

Get query string on FastCGI using C

Query string is the fragment that is the literal string after the question mark on an URL. For example, in following URL, http://blog.petehouston.com/api/posts?sort=desc&category=featured , the...
FastCGI

Config FastCGI for nginx on Ubuntu

For Ubuntu and nginx are so popular, users can get FastCGI configured and installed very easy. First let’s install nginx: $ sudo apt-get update $ sudo apt-get...