{"id":2414,"date":"2018-07-29T10:55:21","date_gmt":"2018-07-29T10:55:21","guid":{"rendered":"http:\/\/govinddas.com\/?p=2414"},"modified":"2018-07-28T05:01:43","modified_gmt":"2018-07-28T05:01:43","slug":"ways-secure-website","status":"publish","type":"post","link":"https:\/\/govinddas.com\/index.php\/ways-secure-website\/","title":{"rendered":"Ways to SECURE YOUR WEBSITE"},"content":{"rendered":"<p>Having gone through the trouble of setting up your own website, it\u2019s now imperative that you don\u2019t let all that hard work go\u00a0 to waste by not implementing some sense of security into it. Whether it\u2019s a WordPress blog setup on a whim or business portal through which financial transactions take place and user information is aggregated, you need to take steps to protect your website from nefarious elements on the Web. Maybe your obscure blog &#8212; started on a whim &#8212; has a couple of blockbuster posts, goes viral, attracts lot of traffic and gets hacked or defaced by punks posing as hackers. Worse, what if sensitive user data and financial transactions taking place on your online business gets leaked or falls into the wrong hands? Our increased online presence means digital dangers have a far-reaching impact that could potentially hurt you in the real world. Therefore, in the 21st century, building any sort of online presence from scratch and not protecting it in any way is just madness. You\u2019re just inviting trouble.<\/p>\n<p>Don\u2019t be that guy (or gal). Learn to protect your digital universe, however inconsequential it may be. While nothing can guarantee your online assets 100 per cent security, you can try to make life as difficult as possible for potential hackers or online thieves trying to deface, bring down, or break into your website. Here are some essential steps:<\/p>\n<p><strong>Hide your footprint<\/strong><\/p>\n<p>One of the easiest ways to secure your website is to make it invisible to prying eyes. Imagine a thief trying to break into a house guarded by a lock that he can\u2019t recognize. Only a genius, badass master thief (one in a million!) could successfully break in, most \u201cthieves\u201d would just turn around and bolt away, cursing their luck. Similarly, by making it difficult for people to guess your website\u2019s CMS or server details, you\u2019d make your website that much more difficult a target to break into.<\/p>\n<p>Similarly, while configuring your website from scratch (as we covered in some of the earlier chapters of this FT), change default settings. For example, if you\u2019re running a WordPress.org installation on your web server, change the default username from \u201cadmin\u201d to something else\u2026 that\u2019s more obscure. Change the default URL for admin login, as well. If you\u2019re making a LOT\u00a0 of changes to a CMS\u2019s default installation, don\u2019t leave sensitive stuff in the comments section of the code \u2013 as anyone can read it easily while viewing the source of your web page through a web browser. For WordPress users (which is what a large number of self-hosted independent blogs and websites consists of), check out the Hide My WP plugin from Code Canyon (<a href=\"http:\/\/dgit\/\"><em>http:\/\/dgit.<\/em><\/a><em> in\/HideMyWP) <\/em>which is an absolute must have for WordPress site owners, as it provides a whole host of features to make your website\u2019s CMS hard to guess \u2013 it\u2019s totally worth the money. And that\u2019s a great start to minimizing your website\u2019s recognizable footprint.<\/p>\n<p><strong>One site, one server<\/strong><\/p>\n<p>Real the temptation is, resist it you must. If Yoda wasn\u2019t a Jedi Master, It\u2019s a trap, but a Web Master (see what we did there, eh?), that would be his advice when it comes to inexperienced webmasters getting swayed by the spell of \u201cunlimited\u201d hosting space. What this means is that you should never (and we mean never ever) host multiple websites on the same web server, as it\u2019s a virtual kiss of death when it comes to protecting anyone or all of the multiple websites in question.<\/p>\n<p>Let\u2019s just say it\u2019s easier to manage an infected host server when there\u2019s only one website hosted on it. If there are multiple websites, based on dif- ferent content management systems, all hosted on the same server, you\u2019re basically leaving the door wide open for intruders to come in and wreak havoc on your web server. There are multiple fail points, in this case, where there are multiple websites hosted on the same server, and anyone being compromised ensures the infection spreads to other CMS installed and hosted in the same space. This is a webmaster\u2019s worst nightmare, and should be avoided at all cost.<\/p>\n<p>The worst part of hosting multiple websites on the same server comes when you\u2019re left to deal with changing every single password associated with every single account that has access to the web server. This includes the CMS installation, MySQL (or any other) database, <em>FTP, <\/em>and more. If you managed to painstakingly get rid off the infection on your server but didn\u2019t spend time changing all the passwords, it\u2019s a job half done and you\u2019ve left another gaping hole in your websites\u2019 defence waiting to be exploited in due time. Duh!<\/p>\n<p><strong>Deny file permissions<\/strong><\/p>\n<p>Simply put, file permissions on a web server decide what an entity can do to a certain file hosted online. And no, we aren\u2019t talking about preventing image files being hotlinked here! This is way more important than that, so pay close attention.<\/p>\n<p>In web server terminology, each file hosted online has three levels of per- missions attached to it. Read (4), Write (2), Execute (1). The first permission allows for anyone to merely read the file contents, the second permission allows anyone to edit the file contents, and the third and final permission allows anyone to effectively run the program file on the server.<\/p>\n<p>The types of users, who have access to these three types of file permissions, are also divided into three. Owner, Group, Public. An Owner is someone who creates the file for which a permission needs to be set \u2013 the values are given by default. Group is a cluster of users with common or shared permissions \u2013 any file in a group will give the same level of permissions to each and every user in that group. The final user type is Public, which is defined as not only any random user on the Internet, but anyone who\u2019s not an Owner or part of a Group policy for web server files.<\/p>\n<p>If you\u2019re absolutely paranoid about your website\u2019s security, and you should be (why not?!), you can go ahead and deny permission to anyone but yourself (as the Owner of all files) access to your web server files. For anyone else that\u2019s not you, giving Read (4) level access should be fine, just to ensure that they don\u2019t make changes to it or execute it at all.<\/p>\n<p><strong>Server configuration lockdown<\/strong><\/p>\n<p>You can\u2019t call yourself a security-conscious webmaster if you haven\u2019t gotten your hands dirty at configuring critical web server files for your online web- site. For most of you who\u2019ve tried your hand at hosting your own blog before on an easy-to-install Apache web server, that .htacess file is the critical server configuration file. What\u2019s a .htacess file, we hear you ask? Well, simply put, it\u2019s a plain text file that contains the directory level arrangement of all web server files and its associated access permissions. By rewriting or editing the .htacess file, which usually sits in the root folder of the directory, you can essentially dictate access to different web directories under the tree, enforce password policies, 404 redirects, and more. Similar to Apache web server\u2019s .htacess, Microsoft IIS servers have useweb.config and Nginx servers use nginx.conf as their respective server configuration files.<\/p>\n<p>Some essential rules that you should enforce on your web server through the configuration files are as follows. Prevent directory browsing \u2013 prevents malicious users from browsing and cataloguing every directory on the web- site or server; Protecting sensitive files \u2013 especially the CMS configuration file, since it\u2019s one of the most sensitive files on the web server, holding the database login details in plain text.<\/p>\n<p><strong>Install a web application firewall (WAF)<\/strong><\/p>\n<p>Just like you are keen to protect all your digital endpoints \u2013 PC, laptop, smartphone, etc. \u2013 with a security software (antivirus) of some kind, similarly you need to secure your website, too. Enter WAF or a web application firewall, which is a server plugin or a separate software appliance that sits between your web server and incoming \/ outgoing communication lines, monitoring the traffic that wants to establish a connection to your website.<\/p>\n<p>Essentially what a WAF does is that it defines a strict set of rules when it comes to allowing who gets to connect to your website and who doesn\u2019t. It\u2019s typically sensitive to sifting through HTTP traffic and keeping an eye out for XSS (cross-site scripting) and SQL injection attacks \u2013 some of the most common hack attack vectors \u2013 but it can be configured to stay alert and vigilant about more sophisticated attacks as well. Most modern WAF solutions are capable of dealing with DDoS and other advanced potential web threats, too.<\/p>\n<p>WAF can be deployed both at a hardware and a software level. Unlike very few popular and reliable PC security vendors, the market for WAF is inundated with a whole bevy of products offering different levels of on Web Services\u2019 WAF offering (<a href=\"http:\/\/dgit.in\/AmznWAF\"><em>http:\/\/dgit.in\/<\/em><\/a><em>AmznWAF) <\/em>which only debuted in October 2015, and offers web security at an attractive price.<\/p>\n<p><strong>TLS, not SSL<\/strong><\/p>\n<p>If you\u2019ve ever delved into online network security then you\u2019d have definitely come across acronyms like TLS and SSL \u2013 hey, you even see them advertised on domain registering and web hosting providers online! But for the uninitiated, TLS (Transport Layer Security) and SSL (Secure Socket Layer) are two protocols used for establishing secure, encrypted network connections between web browsers, apps, websites and web servers. So why are we saying choose TLS over SSL?<\/p>\n<p>In many ways, SSL is considered as a precursor to TLS, and is therefore more widespread across the Internet. What\u2019s concerning about SSL \u2013 espe- cially SSL 3.0 \u2013 is the fact that recently POODLE (a vulnerability that lets attackers gain access to private data of users on websites like passwords, cookies, and other information) has successfully circumvented SSL 3.0 with ease, effectively ringing its death knell. Most online business websites, which collect user data, are quickly shifting over to TLS as a result, which is more robust and at present one of the most widely available secure encryption protocol for public communication over the Internet. TLS 1.2 is the most recent version of TLS, offering a lot of advanced security and encryption measures over the now outdated SSL.<\/p>\n<p>When you\u2019re configuring your website, make sure you definitely con- figure a secure web server \u2013 especially if your website\u2019s going to contain a username, password, and other user information. Definitely choose to go for TLS 1.2 even if it comes at an added premium (usually it doesn\u2019t, it\u2019s just a case of clicking one radio button over another). By doing this, you\u2019ll ensure the security and integrity of communication between your website\u2019s server and different users (or just yourself, be that as it may), not letting anything slip into the prying ears of online eavesdroppers.<\/p>\n<p><strong>CDN<\/strong><\/p>\n<p>Content delivery networks (CDN) are also worth evaluating in your quest to secure and safeguard your website online. Not only do they ensure super fast delivery of your web pages or online service all across the globe, through a vast array of servers all over the world, it can also be a line of defence in your security strategy when you\u2019re website\u2019s encountering DoS attacks &#8212; and especially if your website happens to go down for some reason.<\/p>\n<p>A security-focused content delivery network (CDN), CloudFlare (among others) is worth looking into. It likes to describe itself as an online community watch, keeping the internet\u2019s bad guys from disrupting your online busi- ness, and in a nutshell that\u2019s true. By adding CloudFlare to your website, you essentially allow it to filter content requests flowing into your website, blocking out all the spam and DDoS elements in the process. It also caches all your website\u2019s static and dynamic content across its network of web servers, so even if your website happens to encounter some down time (even for maintenance) a copy of it can always be online and accessible to users from around the world. What\u2019s more, CloudFlare is free to use, and it also has paid plans for more serious businesses who don\u2019t want to compromise with their website\u2019s security and reliability.<\/p>\n<p>While CloudFlare is the most popular free CDN (Content delivery network) out there (even the Pirate Bay uses it!), there are alternatives like InCapsula, Myra Cloud and CDNify that are also worth looking into.<\/p>\n<p><strong>Hack your website (before someone else does)<\/strong><\/p>\n<p>OK, so you\u2019re not a hacker. We get that. And learning how to hack in meticu- lous detail will take time. We get that, too. But think how a hacker would \u2013 he or she wouldn\u2019t really go out trying to hack a website from scratch, without gathering some early vulnerability report, would they? That would be mad- ness, if they did that! You need to do something similar to your website, find out all the chinks in its armour before the bad guys do.<\/p>\n<p>Just like you can download a piece of software onto your PC or smart- phone and test it for viruses and vulnerabilities, similarly you can run malware and vulnerability scanners on your web host to readily find a gaping hole or loose brick in its defensive wall. This step\u2019s important, because without this you\u2019re essentially in the dark, and won\u2019t know what steps to take to reinforce your website\u2019s defence.<\/p>\n<p>Wapiti (<a href=\"http:\/\/dgit.in\/WapitiFzr)\"><em>http:\/\/dgit.in\/WapitiFzr) <\/em><\/a>is an open-source fuzzer, and a good place to start testing your website\u2019s security. Although a couple of years old, Wapiti tries to inject code into a website (through pages or forms) without thoroughly detecting its CMS (Content management system). Another neat online tool used to audit a website\u2019s security is ScanMyServer (<a href=\"http:\/\/dgit.in\/ScnMySrvr)\"><em>http:\/\/dgit.in\/ScnMySrvr). <\/em><\/a>It offers a vast and comprehensive report on a variety of parameters of security testing \u2013 SQL Injection, Cross Site Scripting, PHP Code and HTTP Header Injection, and lots more. Detectify (<a href=\"http:\/\/dgit.in\/detectify)\"><em>http:\/\/dgit.in\/detectify) <\/em><\/a>and SUCURI (<a href=\"http:\/\/dgit.in\/SucuriSite\"><em>http:\/\/dgit.in\/<\/em><\/a><em>SucuriSite) <\/em>are other great website vulnerability testing tools available for your benefit, performing hundreds of automated tests to give you a robust report on your website\u2019s security status. Do act on the findings of these online vulnerability scanning tools!<\/p>\n<p><strong>Backup without fail<\/strong><\/p>\n<p>An oft-overlooked aspect of running or managing your own blog or website is taking regular off-server backup of your CMS\u2019 directory files. Why? Because when push comes to shove, and your site gets hacked against all odds, at least you can restore it back to some immediate point in the past, and not start from scratch (which is Day 0). Make sure you use some FTP app like FileZilla to copy and backup your entire website\u2019s directory files (with all the subfolders included, obviously) and copy it onto a different online location (Google Drive or Dropbox or something similar). Along with all the CMS files, don\u2019t forget to regularly backup the database associated with your website\u2019s CMS, too. All of this over and above regular server-side backups that are done by your web host, obviously. If you\u2019re in doubt, backup before doing anything else. And when you\u2019re done doing that, backup some more. The value of backups cannot be neglected.<\/p>\n<p>We know these are nothing but beginner level steps to pique your interest into securing and protecting your website. We are confident that after reading these tips, you\u2019d want to go online and hunt for more robust, in-depth tips to protect your website. We hope that everyone who takes the pain of starting or running their own website doesn\u2019t do themselves a disservice by ignoring its security and protection. Websites or any other online extension of our life needs to be guarded with the same level of seriousness and security as we safeguard our physical assets. Until we do that, the bad guys will always be a step ahead of us in this eternal game of cat and mouse.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_2414\" class=\"pvc_stats all  \" data-element-id=\"2414\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/govinddas.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Having gone through the trouble of setting up your own website, it\u2019s now imperative that you don\u2019t let all that hard work go\u00a0 to waste by not implementing some sense of security into it. Whether it\u2019s a WordPress blog setup on a whim or business portal through which financial transactions take place and user information is aggregated, you need to take steps to protect your website from nefarious elements on the Web. Maybe your obscure blog &#8212; started on a&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/govinddas.com\/index.php\/ways-secure-website\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_2414\" class=\"pvc_stats all  \" data-element-id=\"2414\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/govinddas.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[2],"tags":[],"class_list":["post-2414","post","type-post","status-publish","format-aside","hentry","category-general-discussion","post_format-post-format-aside"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/posts\/2414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/comments?post=2414"}],"version-history":[{"count":0,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/posts\/2414\/revisions"}],"wp:attachment":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/media?parent=2414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/categories?post=2414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/tags?post=2414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}