How to remove password from PDF files with Google Chrome

Typically statements from Banks or Securities Brokers are password protected PDF files as these contain personal information.

In this article we can see how to remove password and archive the PDF files.

PDF file password can be removed using Google Chrome by following the steps outlined here:

1. Open the PDF file in chrome by drag and drop the PDF file on chrome browser.

2. Provide password and open the PDF file.

3. From file menu choose Print ( or press Ctl P on Windows or command + p on MAC). Choose the destination printer as “Safe as PDF” and click on save button.

4. Google Chrome will save the PDF file to your desktop without any password protection.

HOWTO: Harden your WordPress wp-admin using password protection

Though wp-admin is already secured through login/password authentication, this post will examine to add an additional layer of security.

For the purpose of second layer security htpasswds file will be used.

Create htpasswds file

Use htpasswd command in Linux or OSX to create a htpasswd file. The command to execute  is as below

$ htpasswd -c .htpasswd mydemouser 
New password: 
Re-type new password: 
Adding password for user mydemouser

A file .htpasswd is created in the local directory

$ cat .htpasswd
mydemouser:$apr1$60sgQzdr$C.APpTFtRyjJfpcwQsJB/.

Changes on server hosting WordPress site

1. Copy the .htpasswd file to a directory that’s outside the wp-admin directory

Suggested Directory: /home10/mydemouser/.htpasswds/public_html/wp-admin/passwd/

Change the directory as per your site deployment.

2. Create a .htaccess file in ~/public_html/wp-admin directory and include following

 

AuthName "Restricted Access"
AuthUserFile /home10/mydemouser/.htpasswds/public_html/wp-admin/passwd/.htpasswd
AuthGroupFile /dev/null
AuthType basic
require user mydemouser

3. Access wp-admin page and confirm an authentication popup window appear. If the page fails with too many redirects error then proceed with the next step.

Stop too many redirects error

4. Edit the .htaccess under ~/public_html and add the following line before WordPress rules start

ErrorDocument 401 default

That’s it – double layer authentication should now be active.

How to fix Admin Ajax issue

If the wp-admin is password protected then it will break the ajax functionality in the front-end ( if it is been used). To fix this issue follow the steps below

1. Edit the .htaccess file in ~/public_html/wp_admin folder and add the following code on the file.

<Files admin-ajax.php>
     Order allow,deny
     Allow from all
     Satisfy any
 </Files>

How to force HTTPS on your site

The installation of SSL certificate on a website allow access via HTTP and HTTPS. In this guide, a simple method to force HTTPS for the website instead of HTTP  is explained. Google recommend usage of HTTPS as encryption keep data transmission secure.

Prerequisite

  •   SSL Certificate ( which have been certified by CA authority)
  •   Control Panel access

Force HTTPS

  • Firstly find or create the .htaccess file, the redirection code will have to be entered on this file.
  • To force https add following lines in .htaccess file
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_POST}%{REQUEST_URI} [L,R=301]

 

HOWTO: Add Google Adsense to your WordPress site – Part 1

If you have reached this place, you probably know what Google Adsense does – monetize your website in-short.

Follow the steps below to link-up your adsense account to a wordpress page.

Create an Adsense Account

1. First step is to sign up for an Adsense account. You can either use your existing Gmail account or create a new account.

2. Within 24 hours you should receive an email which would state if first step of the review process is completed.  When this is done, you should be able to login Adsense website and retrieve your Ad Code.

3. Logon to Adsense webpage and click on My ads and then click on Ad units

4. Click on New ad unit, this will bring you to a new screen as below

Choose “Text & display ads”

5. You will be asked to provide Name for the Ad unit and the size, style, and colors.  Provide a name and go with default size for Ad size, and click on “Save and get code” to get your new Ad code

6. Your Ad code snippet would most likely look like this

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- tuxNetworks-Demo -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-9999999999999999999"
     data-ad-slot="999999999999999"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

7. This will be accessible from Ad units page.

 

 

My first post

After many years of thinking on what I should really be doing, I have finally decided to divert my time to blogging.  With a job that require me to work 14 hours a day – there is hardly any time left to do any other activity. End of the day it’s all about passion …. what you want to do.