UPWORK/ODESK guru: Tips and Tricks for clients

skype: odesk.by / upwork.link , email: info@odesk.by/upwork.link

Archive for the ‘Tips and Tricks’ Category

Linux – configuring multicast – via C application.

without comments

Configuring the Kernel for multicast

ref: http://www.linuxjournal.com/article/3041

To use multicast, the kernel configuration requires the CONFIG_IP_MULTICAST option to be set.
Use ifconfig to enable and disable all-multicast mode. Disable promisc by running:

Read the rest of this entry »

Written by spectre

May 21st, 2016 at 2:26 pm

Posted in Tips and Tricks

CSF: IP tracking of DNS name – perl tool

without comments

Simple code on perl for tracking of list of IP of DNS name:

Read the rest of this entry »

Written by spectre

July 21st, 2015 at 4:13 pm

Posted in Tips and Tricks

MosSecurity: ErrorDocument 403

without comments

Precon.:
ErrorDocument 403 http://servername.com/403.php
> apachectl -M | grep uniq
unique_id_module (shared)

file: 403.txt.tar

Written by spectre

July 20th, 2015 at 2:10 pm

Posted in Tips and Tricks

Files robots.txt for WordPress – (War with Google)

without comments

– So Allow does not work in Google? Only Disallow?
– There is no such thing as Allow in the robots.txt standard. You can only Disallow things… BUT:

Google accepts some syntax which is not included in The standard and they spell out how to use it. Allow is an acceptable way to have google crawl a few specific files when all of them are disallowed as a default such as Disallow: /*.php. If it didn't work like that they would not be able to retrieve my php sitemaps which they are doing regularly.

This is how you can disallow "all" and allow "some" for Google, it needs to be in this order:
Disallow: /directory/*.asp
Allow: /directory/filename.asp
Allow: /directory/filename-2.php

I looked it up so you can go and read more about it if you like:

https://www.webmasterworld.com/r.cgi?f=93&d=4699148&url=http://support.google.com/webmasters/answer/6062596

Permalink version (Custom – /%category%/%postname%.php):

Read the rest of this entry »

Written by spectre

July 8th, 2015 at 3:21 pm

Posted in Tips and Tricks,WP

WordPress: Disable automatic redirect. Site on separate ports (Nginx+Apache: 3080/3081)

without comments

You can turn off canonical redirection by putting this into your plugins directory:
Read the rest of this entry »

Written by spectre

July 7th, 2015 at 6:47 pm

Posted in Tips and Tricks,WP

Install or update WordPress plugins without providing FTP access.

without comments

Written by spectre

July 6th, 2015 at 4:15 pm

Posted in Tips and Tricks,WP

SS rows: tracking connections

without comments

Written by spectre

May 4th, 2015 at 8:18 pm

Posted in Tips and Tricks

Smard configuration for Megaraid and notices by email.

without comments

below:
File of configuration:

/dev/sg2 -a -d megaraid,N  -T permissive -o on -S on -W 5,30,35 -s (S/../.././11|L/../../7/03) -m info@email.com, support@email.com -M test -M diminishing -M exec /etc/smartd_mail.sh
/dev/sda -a -d sat -T permissive -o on -S on -W 5,30,35 -s (S/../.././11|L/../../7/03) -m info@email.com,support@email.com -M test -M diminishing -M exec /etc/smartd_mail.sh

Read the rest of this entry »

Written by spectre

April 14th, 2015 at 3:39 pm

Posted in Tips and Tricks

FiltaQuilla: hack & tips

without comments

Written by spectre

December 30th, 2014 at 11:25 am

Posted in Tips and Tricks

Stopping “connect” attacks: PHP vs Apache2

without comments

If mod_proxy is commented out but you are using php5. Tried putting this statement http.allowed_methods = GET & POST into /*/php.ini But it had no effect? The best solution was to add an location declarative with a LimitExcept. The location in the httpd-conf where to place this is very important.

Read the rest of this entry »

Written by spectre

November 24th, 2014 at 7:42 pm

Posted in Tips and Tricks