Архиви на блога

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource

If you have following error Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at Then you need to add some lines to your .htaccess file <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / Header add Access-Control-Allow-Origin „*“ Header

С етикет: , , , ,
Публикувано в Joomla, linux, wordpress

check for eval(base64 in multiple files

If you have hacked joomla or wordpress site you need to check all your site files This commans search all files in current dir and subdirs for eval(base64 which is one of most used combination find * -name ‘*.php’ |xargs

Публикувано в linux

bash rename file

This is simple script which rename files based on some pattern For example rename all files AABBBCCC and replace BBB with DDD ./ren „AAABBBCCC“ „BBB“ „DDD“ #!/bin/bash # renames.sh # basic file renamer criteria=$1 re_match=$2 replace=$3 for i in $(

Публикувано в linux, Без категория

catch spam from apache

Sometimes is very hard to debug from which virtual host spam is This can be check very easy with this trick create a new file  vim /usr/local/bin/phpsendmail place inside it #!/usr/bin/php <?php $sendmail = ‘/usr/sbin/sendmail’; $logfile = ‘/var/log/mail.form’; /* Get

С етикет: , , , ,
Публикувано в linux, php

mysql Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.

If you get some errors like this you need to open your home directory vim ~/.my.cnf and change on the row pass= to password=

С етикет: , , , , , ,
Публикувано в linux