Skip to main content



Recent posts

Ajax Request

Client Side

$.ajax({ url: '/path/to/server', type: 'POST', data: { first_name : firstName, last_name: lastName, address: address, city: city, country: country }, success: function(result) { var obj = jQuery.parseJSON(result); if(obj.result == 'OK') { alert(obj.message); } else { alert(obj.message); } } });
Server Side
response from php file

echo json_encode(['result'=> 'OK', 'message' => 'This is message']);

The Importance of Redesigning Your Website

Redesigning a website takes time and money, but in the end a revamp is a wise investment. Your website is essentially a virtual business card, and your strongest online marketing tool.

Whether you’re looking for the best web development in LA or revamping in NYC, make the most of business by keeping your website fresh, up-to-date, and user-friendly.

Outdated The Web is constantly changing: Web technology that was once considered cutting-edge is most likely out-of-date today. A website makeover will give you and your business an advantage in the competitive, online sphere..

In fact, design is a leading factor in user trust. According to a study titled, “Trust and Mistrust of Online Health Sites,” 94 percent of the participants agreed that an updated, better looking website is more trustworthy than an outdated design, even if the information displayed on both is accurate and of equal quality.

Usability If your readers are unable to find what they’re looking for quickly, they will leave. To pr…

Content in Web Design

Once a visitor is a customer, it’s important to keep them coming back. The work doesn’t stop after the initial website launch, and any good web design company will help you understand the other factors for success, like engaging content. Posting fresh, relevant information on your website will ensure your site improves SEO while driving new and returning traffic.

Keep Visitors Coming Back With Engaging Content When it comes to web marketing, content is king. Engaging content can include anything from infographics, to videos, to opinion posts.

An infographic is one of the most basic ways to present information in a visual way; hence the name, info + graphic. Infographics are statistically proven to drive views faster than other types of content and are a powerful way to get your information out in a simple, visual format. In fact, studies show that infographics are shared and liked on social networks up to three times more often than other content.

Cater to Your Specific Audience to Drive …

LAMP : Apache Web Server Security Hardening

Firewall - UFW A good place to start is to install a Firewall.
UFW - Uncomplicated Firewall is a basic firewall that works very well and easy to configure with its Firewall configuration tool - gufw, or use  Shorewall, fwbuilder, or Firestarter.
Use Firestarter GUI to configure your firewall or refer to the Ubuntu Server Guide,  UFW manual pages or the Ubuntu UFW community documentation.

Install UFW and enable, open a terminal window and enter :

:~$ sudo apt-get install ufw

Allow SSH and Http services.
:~$ sudo ufw allow ssh
:~$ sudo ufw allow http
:~$ sudo ufw allow https/tcp

Enable the firewall.
:~$ sudo ufw enable

Check the status of the firewall.
:~$ sudo ufw status verbose

SSH Hardening - key based login, disable root login and change port.
The best way to secure SSH is to use public/private key based login. See SSH/OpenSSH/Keys
If you have to use password authentication, the easiest way to secure SSH is to disable root login and change the SSH port to something different than the sta…

Protect your apache server from WordPress Pingback DDoS attacks

A security researcher at SANS Technology Institute put out an advisory around 8 months ago when he discovered that WordPress’s “pingback” functionality contains an exploit allowing it to request a result from any server that an attacker wishes. This vulnerability means that there are thousands of WordPress installations that can be effectively weaponized to conduct floods against any target site of someone’s desire. This particular attack is dangerous because many servers can be overwhelmed with only 200 blogs “pingbacking” their site, clogging up their limited connections and/or resources.

To confirm if you are under wordpress pingback ddos attack, check your access logs.

$ sudo tail -f /var/log/apache2/access.log

Logs will look like this: - - [09/Mar/2014:11:05:27 -0400] "GET /?4137049=6431829 HTTP/1.0" 403 0 "-" "WordPress/3.8;" - - [09/Mar/2014:11:05:27 -0400] "GET /?4758117=5073922 HTTP/1.0&quo…

Cakeswatch is adaptation of Bootswatch for CakePHP 3.x themes

Cakeswatch Cakeswatch is adaptation of Bootswatch for CakePHP 3.x themes. Get it here :

Installation using gitcd my_app_name git clone git:// plugins/Cakeswatch Manual installation Download and extract file inside my_app_name/plugins/ Load plugin and use the theme In your config/bootstrap.php in the bottom of the file add Plugin::load('Cakeswatch'); In your src/Controller/AppControler.php add public function initialize() { $this->viewBuilder()->theme('Cakeswatch'); } To use the different bootswatch themes. In your plugins/Cakeswatch/src/Template/Layout/default.ctp change the css name of bootswatch theme you want to use. echo $this->Html->css('flatly.css'); When running bake use the --theme option to specify the bake-theme you want to use.