How to prevent downloading and leeching media files

Hits: 493  How Do I Stop Hotlinking, Bandwidth Theft, Downloading and Leeching media files? You can stop downloading / hotlinking / leeching your site’s files using .htaccess in your Apache root or directory. The Apache mod_rewrite must be enabled for this. The 1st line of the above code begins the rewrite. The 2nd line matches any [...]

GIT – Cheat Sheet

On February 1, 2011, in Concentrate, Fedora, Imagine, LAMP, Launch, Linux, Observe, Open Source, PHP, Tips, by Sandeep Verma

GIT – Cheat Sheet

Tagged with:  

How to clean malware from website?

On January 30, 2011, in CentOS, Fedora, Launch, Linux, Open Source, PHP, Tips, Tricks, Web Security, Web Services, by Sandeep Verma

Hits: 292  Malware, short for malicious software, is a software designed to secretly access a computer system without the owner’s informed consent. The expression is a general term used by computer professionals to mean a variety of forms of hostile, intrusive, or annoying software or program code. You have seen above warning many times when you [...]

UTF-8 FTP Tools

On December 4, 2010, in Fedora, LAMP, Linux, Open Source, Tricks, by Sandeep Verma

Hits: 291  FTP Tools / Clients are most useful for transferring files and data to server. There are many FTP clients used in File Transfer, please use wikipedia.org for more details… http://en.wikipedia.org/wiki/Comparison_of_FTP_client_software Some time file transfer is not secure and reliable using various tools, file become corrupted or some special characters added to files. You have to use UTF8 [...]

Open source – Port25

On November 14, 2010, in Amazon Cloud EC2 S3, CentOS, Fedora, Linux, Open Source, Tips, by Sandeep Verma

Hits: 98  If you have trouble getting the PHP’s mail() function to work on your server. If the function returned true, but never send the emails to target account. Some ISP’s block port 25 (mail port), so you can’t send directly but you can send indirectly using your ISP’s mail server. Many email providers keep lists [...]

Tagged with:  

Install geoip on xampp

On August 28, 2010, in CentOS, Fedora, LAMP, Linux, Open Source, PHP, Shared Library, Tricks, Web Application, by Sandeep Verma

Hits: 1020  Geocoding (finding latitude/longitude for street addresses), Geotagging (tagging media with latitude/longitude coordinates), and Geolocation (finding latitude/longitude of computer with IP X-Forwarded-For). There are some options to install on linux environment: # wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz # gunzip GeoLiteCity.dat.gz # sudo mkdir -v /usr/share/GeoIP # sudo mv -v GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat Install geoip with php5 # sudo apt-get [...]

How to run cronjobs per second?

On August 21, 2010, in CentOS, Fedora, LAMP, Linux, Tricks, by Sandeep Verma

Hits: 716  Have you checked my previous article on cronjobs… http://blog.svnlabs.com/tag/crontab-command-line/ To run cronjob per second you have to execute crontab/cronjob per minute and then have to run task in cron file per second using PHP function time_sleep_until(). <?php $start = microtime(true); for($ii=0;$ii<60;$ii++) { //………………………. /// here is the tasks which need to run per second… [...]

Tagged with:  

Image2text

On June 23, 2010, in CentOS, Fedora, LAMP, Linux, Open Source, Tips, Tricks, by Sandeep Verma

Hits: 60  1100011111000001011000000011100111100001110100010100101000101101101011 1111000100110110100110010100111100101110110000101101100010111111011011 0001111001110001100110000000011000010101010010010001010110000101000010 1111101110000011010011010110011110111110100110100100010011010001010001 1100111001001000101100011011101101100111110110111010010010110010010001 0100111001000111101100001011010100010100011000110100010100010001101001 0010011011001110110101000000001000110100001101000011010000000100000000 1100110100111010000111100101010100111011111001101000111000111011100110 0000101110111011011101001000010010010101001001100010111111011000101111 0100010010000010101001010111100011000011010100010000001111001000011101 0100000100011010011110111110100000001001111001110111011001000001111001 0001000001110000101001101100010000010111100011010001100101110011000101 0001111111001011101111110000000111111111010101110100110001001001111110 1100001011110100101000011011111110010101011011100000000001001001000011 1000100001000110010010101110111001111010111011101101111000111110010101 1111100001100110101011110001111110111010001101010001011110111111100100 1111100011000101010111111000011110100010001101110010100100011101110000 1100111010101011010011010100110001111100111111000010110001100101100100 0101011101001010001111010011000010011010101111000000100011111101001001 0000111100010000000100110111010101111100000000010011110100000111010011 0010000000100011010111100011110100010001111110111101001101011100101101 1000110100100001001010110011111110001110101011110100100001000111001111 1000000011101111010001001000001100110011001011001110011110110101110011 0000010000011010000011010001011110101100001111010111110111001110101100 1101101101111111001010100101111000101011111010110111100011100100010101 0000010110100011111001100000101111100000110110001001010110111111000111 1001010101111101110001111011100111001111010100111100110011111100110111 1100000100000100000110001011111110111011000110101100111000000001001000 0000010111010000001001011011011001100110100110110000010001111111111100 1001011110110100001011010101111010111000111000110100100001011011101110 # gocr -­h //short man page # gocr sample.jpg //best case # gocr ­-m 130 sample.jpg //database Some great tips coming soon….

Tagged with:  

Create FTP user from SSH

On June 3, 2010, in CentOS, Fedora, LAMP, Linux, Tips, Tricks, by Sandeep Verma

Hits: 243  Wow! amazing …… Do you want to create FTP user from linux command line SSH? First you have to install FTP daemon like vsftpd: http://www.cyberciti.biz/tips/linux-creating-ftp-account-with-vsftpds.html proftpd: http://www.cyberciti.biz/tips/linux-installing-configuring-proftpd-ftp-server.html Use below commands to create FTP user in Web accessible location # useradd -c ‘FTP USER svnlabs’ -m svnlabs -d /var/www/html/svnlabs # chmod -R 775 /var/www/html/svnlabs

Upload Large Database Table to Server

On May 30, 2010, in Fedora, LAMP, Mysql, Open Source, Tips, Tricks, by Sandeep Verma

Hits: 142  Hello Friends, Sometime we want to upload large database table to server but phpMyAdmin have limit to upload SQL large *.sql files.. When we create database table “svnlabs” from mysql admin server make 3 files “svnlabs.frm”, “svnlabs.MYD” and “svnlabs.MYI” These files are located at “/var/lib/mysql/svnlabs”.. we can check this location by phpinfo.php We can [...]

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...