inject google analytics to html files with bash

In some cases you create static html/htm file away from whatever CMS you may use (Wordpress – Joomla – Drupal) so your google analytic code “javascript” need to be inject manually.
In case like this and when you have many html/htm files you can use this script to automatically insert google code to them
Pleas take care from the following point:
1- Change TRACKER_ID to be Your
2- Edit the script to meet your need for example if your file have extension htm/html .. etc
3- Backup the original html/htm files

More »


joomla and wordpress virus

Last days my brother site (used joomla CMS) affected by Malicious Iframe in all html, php files
He say while he working in his own site the anti-virus start to complain about HTML/Framer virus every time load his home page, After fast check i find his site was victim of malicious inject
joomla and many other web CMS  can be infected with this kind of attack
Example malicious site:

http://internetcountercheck.com

http://thedeadpit.com

More »


centos-release-notes

More »