Skip to main content

Posts

Showing posts from November, 2015

How to Hide AdSense Ads on your Website

G oogle AdSense supports Responsive Ads which means that the size of AdSense ads on your website will automatically change based on the visitor’s device. Thus, if they are viewing your pages on a desktop computer, they may be served the bigger 728×90 leaderboard while the same ad unit may serve a smaller 468×60 banner to visitors who are on a tablet. There’s no need to change the code as the AdSense script smartly detects the browser’s width and serves the right size accordingly. Now consider a slightly different scenario where, instead of showing a smaller sized ad, you would like to completely hide the AdSense ad if the screen width is less than ‘n’ pixels. For instance, you may have a 160×600 px Skyscraper unit in your website’s sidebar but it should be displayed only when the site is being viewed on a desktop computer and not on a mobile phone. There are two ways to achieve this. You can either write a CSS media query that will completely hide the sidebar o...

Password Protect your WordPress Admin Folder

WordPress websites and blogs are prone to Brute Force attacks and a recommended way to prevent your site against such attacks is to protect your wp-admin folder with a password. Let me explain. Your WordPress installation directory has three main folders: the wp-content folder includes all your themes, plugins, images and other uploaded files. the wp-includes folder includes all the PHP functions that actually run WordPress. the wp-admin folder is the front-end for WordPress admin, authors and and other members. Unlike the public HTML pages and images of your WordPresss website, the Admin dashboard area requires a username and password and is thus accessible only to “authorized” users. However, to make your WordPress more secure, you can add an extra layer of security to the wp-admin folder so that even authorized users can’t just get in with their WordPress passwords. Secure wp-admin directory of WordPress with a Password Here’s a step by step guide on how to p...

Make your WordPress Website More Secure with Single Sign On

Y our WordPress website has a public login page, often found at  example.com/wp-login.php , and it is possible for someone to gain access to your site by guessing your password through repeated trial and error method. To harden your WordPress security, it is therefore recommended that you password-protect the WordPress admin folder and also use 2-factor authentication. Secure WordPress with Single Sign On WordPress Single Sign On offers an even more secure option for protecting your website from brute force attacks as you ‘outsource’ the authentication part to WordPress.com. Once enabled, the login screen on your WordPress website is disabled and you are required to sign in to your WordPress.com account in order to access the admin dashboard of your own self-hosted WordPress blog. There are several advantages here: Since WordPress.com accounts support 2-factor authentication, the the same level of security is now...