How to Disable USB/PEN DRIVE in Linux (KALI LINUX)

Now a days every one want to a secure system. So many peoples use anti virus in their systems, But Some genius  peoples switch OS and use Linux. Every one know Linux is more secure than windows.
But we miss many utilities of windows in Linux. Many peoples not comfortable with terminal but now a days Linux give more attractive user interface.

Now back on our tutorial i want to tell you that windows only give USB block service via group editing.  in this block service the all USB devices blocked.
But Linux is a step forward because in Linux you can also block USB via vendor id.
Follow these step to block USB in Linux

How to Block USB/PENDRIVE/CD/DVD via group editor in windows xp/7/8/8.1

Many times we want to restrict USB drive in our system. Then we use many tricks for this purpose.
like:
  • Windows Registry Editing
  • USB Permissions Change
  • Third Party Software

In previous days the windows registry trick are very popular in windows xp. But now a days we use windows 7 or 8. and in these operating system if we use registry trick then we success for some time, because after a update the system change registry at default stage.So this Does not work in new operating systems.
Second one option is we can change USB permissions for the user, but is more complex when we want to give back write permissions to users.
Third option is, we install a third party software for  USB blocking. this is a  successful way to block removable disk but we always afraid for keylogger and any malware. because no one company gives you services in free. if the company give the service is free then something is wrong.

Chat Script in PHP With Full Source code & Live Demo

Now a Days online chat is common. Many companies  gives a service to chat with customer care executive . So today we see how to implement a group chat box where many users comes in chat room at a time.

How to Fetch Result from another website via help of php

Today every developer wants to  search results (from another website) show in our website webpage.
like as:

  • india results
  • rtu portal
  • many results sites


so today we learn how to fetch data from another website. for this purpose we use php curl lib function.
php allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHP's ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication.

Online Visitor Management System (Help of BAR code)

Today every person want to store his data online. even institutes also want to work online as well as.
So in this chain we develop a online visitor management system which is work on Student's ID card.
This system take input from bar code (which is printed on student's id card).

What is the BAR code:

Bar code is a language which store specific data readable by machines (not human read).
For example:
A student id card have several information like as name,father's name,class,year,dob,registration id,address etc.

How to stop spammers with motion CAPTCHA using jQuery

Today's every developer wants to secure his website from spammers and auto form submit tool.
so the developers use the captcha for the human verification.
many captcha verification available like:
  • numeric captcha
  • alphabetic captcha
  • recaptcha (provided by google)
  • motion captcha (Next generation  captcha Solution )


So today we learn how to use motion captcha  in our forms.

how to insert data from excel file to my sql database

Normally we insert the data in MySQL via a form or manually from phpmyadmin.
But if we have large amount of data in excel. and we want to insert these data in our sql database.
So we learn today

"how to insert data from excel to mysql"

So in this tutorial first we create a database with some coloums.

How to make a simple visitor counter using PHP

Every one wants to know that how many users comes on his particular web page or website.
so the solution is we create the hit counter on our web server.
primary files used in this project
1. counter.php
2. counter.png (80*20 pixel )
3.counter.txt
4.visitors_ips.txt

So above four files are necessary in this project.
Note: make sure  that  "counter.txt", "counter.php" and "visitors_ips.txt" files should be in the same folder  and The two text files should have a 666, write for all permission

PHP Login Project (PHP Login script tutorial)

In web development, we want to secure our pages from unauthorized users.
so we need a secure log in system to protect our data from other users.
here i show you that how to implement secure log in project via help of Php &  MySQL.
in this project we use following files:
1. index.html (this is main interface of our project & also include a  log in form)
2.loginproc.php (this is processing file to check  username & password correct or not)
3.config.inc (this is used for database connection)
4.logout.php (this is used for log out process)
5.main_page_after_login.php (the page we want to secure from others)
6.wrong_password.html  (if the user enter wrong password )

First we create the database table
2. users.sql
-- phpMyAdmin SQL Dump 
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jul 03, 2014 at 05:39 AM
-- Server version: 5.5.24-log
-- PHP Version: 5.3.13

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `phplogin`
--

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE IF NOT EXISTS `users` (
  `username` varchar(220) NOT NULL,
  `password` varchar(220) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`username`, `password`) VALUES
('admin', '123'),
('govind', '123');

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;


1. index.html
<!DOCTYPE html>
<html lang="en">
    <head>
		<meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
		<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
         <title>Log in form Designed by Govind Prajapat</title>
        <meta name="description" content="Custom Login Form Styling with CSS3" />
        <meta name="keywords" content="css3, login, form, custom, input, submit, button, html5, placeholder" />
        <meta name="author" content="Codrops" />
        <link rel="shortcut icon" href="../favicon.ico"> 
        <link rel="stylesheet" type="text/css" href="css/style.css" />
		<script src="js/modernizr.custom.63321.js"></script>
		<!--[if lte IE 7]><style>.main{display:none;} .support-note .note-ie{display:block;}</style><![endif]-->
    </head>
    <body>
        <div class="container">
		
			<!-- Codrops top bar -->
            <div class="codrops-top">
                
               
            </div><!--/ Codrops top bar -->
			
			<header>
			
				<h1><strong>Simple Login</strong>Based on php</h1>
				<h2>Developed By-<a href="http://grprajapat.blogspot.com"><font color="red">Govind Prajapat</font></a>.</h2>
				
				

			 	<div class="support-note">
					<span class="note-ie">Sorry, only modern browsers.</span>
				</div>
				
			</header>
			
			<section class="main">
				<form class="form-1" form method="POST" action="loginproc.php">
					<p class="field">
						<input type="text" name="username" placeholder="Username or email">
						<i class="icon-user icon-large"></i>
					</p>
						<p class="field">
							<input type="password" name="password" placeholder="Password">
							<i class="icon-lock icon-large"></i>
					</p>
					<p class="submit">
						<button type="submit" name="submit" value="Login"><i class="icon-arrow-right icon-large"></i></button>
					</p>
				</form>
			</section>
		
        </div>
    </body>
</html>
2. loginproc.php
<?php
//file created by govind prajapat
//file download from www.grprajapat.blogspot.com
// Inialize session
session_start();

// Include database connection settings
include('config.inc');

// Retrieve username and password from database according to user's input
$login = mysql_query("SELECT * FROM users WHERE (username = '" . mysql_real_escape_string($_POST['username']) . "') and (password = '" . mysql_real_escape_string(($_POST['password'])) . "')");

// Check username and password match
if (mysql_num_rows($login) == 1) {
// Set username session variable
$_SESSION['username'] = $_POST['username'];
// Jump to secured page
header('Location: main_page_after_login.php');
}
else {
// Jump to login page
header('Location: wrong_password.html');
}

?>
3. config.inc
<?php

//file created by govind prajapat
//file download from www.grprajapat.blogspot.com
$hostname = 'localhost';        // Your MySQL hostname. Usualy named as 'localhost', so you're NOT necessary to change this even this script has already online on the internet.
$dbname   = 'phplogin'; // Your database name.
$username = 'root';             // Your database username.
$password = '';                 // Your database password. If your database has no password, leave it empty.

// Let's connect to host
mysql_connect($hostname, $username, $password) or DIE('Connection to host is failed, perhaps the service is down!');
// Select the database
mysql_select_db($dbname) or DIE('Database name is not available!');

?>
4. logout.php
<?php

// Inialize session
session_start();

// Delete certain session
unset($_SESSION['username']);
// Delete all session variables
// session_destroy();

// Jump to login page
header('Location: index.html');

?>
5. main_page_after_login.php
<?php
//file created by govind prajapat
//file download from www.grprajapat.blogspot.com
// Inialize session
session_start();

// Check, if username session is NOT set then this page will jump to login page
if (!isset($_SESSION['username'])) {
header('Location: index.html');
}

$secretword = $_SESSION["username"] ;
		
?>
<body background="images/bg.jpg">
</body>
		<p style="color: #708090; background-color: #FFFFFF" align="center" > <font size="6">This page show after the successfully login </font><font size="3" align="right">welcome <font color="red"><?php echo $secretword ?></font></font></p>
 <p><a href="logout.php">Click here to Logout</a></p>

6. worng_password.html
<!DOCTYPE html>
<html lang="en">
    <head>
		<meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
		<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
         <title>Log in form Designed by Govind Prajapat</title>
        <meta name="description" content="Custom Login Form Styling with CSS3" />
        <meta name="keywords" content="css3, login, form, custom, input, submit, button, html5, placeholder" />
        <meta name="author" content="Codrops" />
        <link rel="shortcut icon" href="../favicon.ico"> 
        <link rel="stylesheet" type="text/css" href="css/style.css" />
		<script src="js/modernizr.custom.63321.js"></script>
		<!--[if lte IE 7]><style>.main{display:none;} .support-note .note-ie{display:block;}</style><![endif]-->
    </head>
    <body>
        <div class="container">
		
			<!-- Codrops top bar -->
            <div class="codrops-top">
                
               
            </div><!--/ Codrops top bar -->
			
			<header>
			
				<h1><strong>Simple Login</strong>Based on php</h1>
				<h2>Developed By-<a href="http://grprajapat.blogspot.com"><font color="red">Govind Prajapat</font></a>.</h2>
				
				

			 	<div class="support-note">
					<span class="note-ie">Sorry, only modern browsers.</span>
				</div>
				
			</header>
			
			<section class="main">
			<h3> <font color="red">Please check your username & password!</font></h3>
				<form class="form-1" form method="POST" action="loginproc.php">
					<p class="field">
						<input type="text" name="username" placeholder="Username or email">
						<i class="icon-user icon-large"></i>
					</p>
						<p class="field">
							<input type="password" name="password" placeholder="Password">
							<i class="icon-lock icon-large"></i>
					</p>
					<p class="submit">
						<button type="submit" name="submit" value="Login"><i class="icon-arrow-right icon-large"></i></button>
					</p>
				</form>
			</section>
		
        </div>
    </body>
</html>



Source Code of this project




Live Demo of this project
click here to live demo




How to solve bluestacks graphics card error ?

Bluestacks is the best Android emulator to play games and use Android  apps on pc.
when we install bluestack then computers give the graphics drivers error.
and we all know that it's very critical to find suitable graphics drivers for over pc.
 Error 25000. Bluestacks currently doesn't recognize your graphic card. It is possible your graphics drivers may need to be updated. Please update them and try install again.
                                                                        


Reason for BlueStacks Error

minimum requirement of bluestack is
1.Good graphics card
2.minimum 2 GB ram 
 If you don't have your graphics driver OR you don't have update your graphics drivers thenbluestack give following error.
                                                                              

How to Fix Bluestacks Error?

So, today we learn how to solve blue stack graphic card error

Update Graphics Card Driver:

To avoid following error please update your graphics card drivers. if you don't know your computer  which type of graphics card and which model number.
don't take tension. we are here. we gives you some links for intel,amd,nvidia users click on these links and you get right drivers for your system.
Here the links
  • After the click he is automatically detect the system graphics.
  • After scanning it gives a list of drivers which you want.
  • Then update and install all driver. (Especially Graphics card Driver).
  • After updating of graphics card driver restart your pc, then install Bluestacks on your PC.

Install the older version of bluestacks:

If the problem is not solving after the graphics update then you can use older version of bluestack 
                                                           
  • After downloading install it on your Computer and enjoy Android Apps and Games.

Conclusion

If your graphics problem does not solve via first method. then you can try second method.
Feel free to comment and share

Linux Installation Guide