Nginx Hotlink Protection

To block hotlink protection or bandwidth stealing, you can add following to server configuration of your web site.

If you need to allow hotlink from a specific domain, you can edit the valid_referers line and add the url. If you only want to limit access to images and videos, you can put above code […]

Read More…

aaPanel – Free Hosting Control Panel

aaPanel is a free hosting control panel written in Python. https://www.aapanel.com To reload nginx, run

Nginx configuration file location

See Hosting Control Panel […]

Read More…

Bash check if a program is running or not

You can find process id for a running program with command

Example

We can use pidof command in bash script to find if a program is running or not

See bash […]

Read More…

PrestaShop Error Declaration of Cart::getPackageShippingCost

On a PrestaShop site, i get error message

To fix this error, edit file /var/www/vhosts/site.com/httpdocs/override/classes/Cart.php Find line

Replace with

This is because orderide class have improper function definiation, this may be due to some outdated PrestaShop modules. See PrestaShop […]

Read More…