Useful Info


How to change the Admin URL?

Edit the application/config/constants.php file using FTP and change line number 97.

Replace 'admin' with your string (e.g. 'restrictedArea').

From:

defined('SITE_AREA') || define('SITE_AREA', 'admin');

To:

defined('SITE_AREA') || define('SITE_AREA', 'restrictedArea');

Also rename the application/controllers/admin folder with your string name (e.g. 'application/controllers/restrictedArea').

An extra step to protect your website from hacking via .htaccess file

Edit the public_html/.htaccess file and paste the code below at the top of the .htaccess file.

# Disable script execution
AddHandler cgi-script .pl .jsp .asp .sh .cgi .alfa .py .php5 .php4 .php3 .php2
Options -ExecCGI
# Allow only index.php file to execute
<Files *.php>
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
</Files>
<Files index.php>
    Order Allow,Deny
    Allow from all
</Files>

The code above will disable the execution of all scripts except php files. Only index.php will be accessible.

Deny direct access to all .php files except index.php in the public_html folder. Paste the below code after the RewriteEngine On as follows:

RewriteEngine On
# Deny direct access to all .php files except index.php
RewriteRule ^(?!(/<ROOTPATH>/public_html/)?index\.php$).+?\.php$ - [F,NC]

Don't forget to replace the ROOTPATH with your hosting server path. e.g. home/directory

How to Force Redirect HTTP to HTTPS by Editing .htaccess File?

Install the SSL certificate on your Hosting Panel. After installation of SSL, edit the public_html/.htaccess file. You can edit this file via FTP or cPanel File Manager. The next step involves htaccess redirects to HTTPS in Apache or NGINX.

Edit the .htaccess file and uncomment the code below (Line numbers 178, 179 and 180):

# RewriteCond %{HTTPS} off
# RewriteCond %{HTTP_HOST} ^(www\.)?example\.com
# RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

Replace example.com with your domain name, for instance, the code below will enable HTTPS for the domain https://www.goclixy.com

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(www\.)?goclixy\.com
RewriteRule ^(.*)$ https://www.goclixy.com/$1 [R,L]

If the above code does not work, use the alternate code below:

Insert this code to the .htaccess file after RewriteEngine On to force all web traffic to use HTTPS. 

RewriteEngine on
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
GoDaddy Hosting
 RewriteEngine On 
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?YOURDOMAINNAME\.com
RewriteRule ^(.*)$ https://www.YOURDOMAINNAME.com/$1 [R,L]

How to change Favicon for your website?

The favicon.ico file is typically a simple 16x16 image, visible in the browser title bar. To replace this image, simply do the following:

Create a "favicon.ico" file from your preferred image. You can use an image editing tool—such as Adobe Photoshop, GIMP, MS Paint, etc. to create your image. Once the image is ready in PNG/JPG format, use online sites to convert it to a favicon.

https://www.favicon-generator.org/
https://icoconvert.com/

You can also design an icon online at http://www.favicon.cc/.

You can also download one from https://www.freefavicon.com/freefavicons/

Upload the image to public_html/assets/images folder of your website. You can also replace the image through the Admin Panel via Settings->File Manager.

PNG to ICON conversion through ICOConvert.com

  • Upload your png at https://icoconvert.com/
  • At Step 4, select 32x32 from custom sizes and click the Convert ICO button.
  • After conversion, click the Download your icon(s) link.
  • Once the file is downloaded, rename it to favicon.ico.
  • Login to your site admin panel and visit Settings->File Manager.
  • Rename the existing favicon.icon and upload the new one.

Cookies

We do not use any cookies, however, GoClixy is developed using Codeigniter Framework and it uses some cookies (e.g. ci_csrf_token, bf_session) for data storage. We cannot disable this behavior, please update this information in your Terms & Conditions policy.

_ga and _gid

In order for Google Analytics to determine that two distinct hits belong to the same user, a unique identifier, associated with that particular user, must be sent with each hit. For this purpose, Google Analytics uses a single, first-party cookie named _ga to store the Client ID. The Client ID is a randomly generated string that gets stored in the browsers cookies, so subsequent visits to the same site can be associated with the same user.

bf_session

The session class stores session information for each user as serialized (and optionally encrypted) data in this cookie. This is used to maintain a user's "state" and track your user's activity while they browse your site.

ci_csrf_token

Used for input data security. It prevents site attacks in which a malicious entity tricks a victim into performing actions on behalf of the attacker.

How To Add A Cookie Consent?

Use the following free script from https://cookieconsent.insites.com.

Add the following code in the header of your website, just before the </head> tag.

Use FTP and insert the code in the public_html/themes/default/_header.php file before the </head> tag.

For help and additional options see the documentation.

<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
  "palette": {
    "popup": {
      "background": "#eaf7f7",
      "text": "#5c7291"
    },
    "button": {
      "background": "#56cbdb",
      "text": "#ffffff"
    }
  },
  "theme": "classic",
  "position": "bottom-right",
  "content": {
    "message": "This website uses cookies.",
    "href": "< ENTER YOUR TERMS AND CONDITIONS PAGE URL >"
  }
})});
</script>

How to Change TimeZone (Incorrect Date & Time)

The timezone is not script specific, it is automatically detected based on your hosting server settings, you can also change it on hosting provider end. If you want to change it for your website only, update the index.php file.

Modify the index.php file and add this line at the top of the page. Do not forget to replace the Asia/Kolkata with your country timezone.

date_default_timezone_set('Asia/Kolkata');
require '../vendor/autoload.php';

How to paste the Google AdSense Code  between the <head> and <head> tags?

Login to your site cPanel, and open the public_html/themes/default/_header.php file in the editor. Paste your adsense code just before the closing </head> tag.