internetearnings.com

Get Visitors Actual IP Address with LiteSpeed & Cloudflare

If you are using Cloudflare, your server will log Cloudflare IP address when visitors coming to your website. This problem can be solved by using mod_cloudflare for Apache server.

However, the method won’t work with LiteSpeed. Fortunately, LiteSpeed has a much simpler method to get the actual visitor’s IP address.

Use the following steps in order to obtain actual visitor’s IP address if you are using LiteSpeed & Cloudflare.

  1. Login to LiteSpeed Web Admin Panel
  2. Browse to Configuration → Server  General Settings
  3. Edit “Use Client IP in Header” to “Yes
  4. Save & Start LiteSpeed Gracefully

Remove Template Selection in the Footer of phpMyDirectory

If you have multiple templates installed in phpMyDirectory, you may notice that there, there is a drop-down menu to change the template at the footer of every page.

This feature is very useful if you are selling phpMyDirectory templates but will be very annoying if you are not.

To remove this feature, locate “footer.tpl” in the currently used template & remove the following code.

<?php echo $options;?>