OpenNetGuru

Saturday, May 19th

Last update:12:30:26 PM GMT

You are here: Developer Zone php / mysql

php / mysql

PHP - Web attack

E-mail Print PDF



PHP based apps can face the different types of attacks. I have noticed the different types of attacks:

XSS - Cross-site scripting is a vulnerability in php web applications, which attackers may exploit to steal users' information. You can configure Apache and write more secure PHP scripts (validating all user input) to avoid xss attacks.

SQL injection - It is a vulnerability in the database layer of an php application. When user input is incorrectly filtered any SQL statements can be executed by the application. You can configure Apache and write secure code (validating and escaping all user input) to avoid SQL injection attacks. A common practice in PHP is to escape parameters using the function called mysql_real_escape_string() before sending the SQL query.

File uploads - It allows your visitor to place files (upload files) on your server. This can result into various security problems such as delete your files, delete database, get user details and much more. You can disable file uploads using php or write secure code (like validating user input and only allow image file type such as png or gif).

Including local and remote files - An attacker can open files from remote server and execute any PHP code. This allows them to upload file, delete file and install backdoors. You can configure php to disable remote file execution.

eval() - Evaluate a string as PHP code. This is often used by an attacker to hide their code and tools on the server itself. You can configure php to disable eval().

Sea-surf Attack (Cross-site request forgery - CSRF) - This attack forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated. A successful CSRF exploit can compromise end user data and operation in case of normal user. If the targeted end user is the administrator account, this can compromise the entire web application.

For More info: http://www.cyberciti.biz/tips/php-security-best-practices-tutorial.html

IVR Based Exam Results Management

E-mail Print PDF

IVR22 Most of the companies are having call centre related applications to support their internal / external data for Communication. IVR / Speech Recoganation technology is one that is related to the masses on a larger scale Business. This technology can dramatically improve the efficiency and productivity of the school's / College administrative personnel while providing a flexible and cost-effective service to students/parents.

Search engine friendly on PHP

E-mail Print PDF


Search engine friendly URL:
http://www.publicencounter.com/page/v/v1/v2/v3
NON-Search engin friendly url(SEF):
http://www.publicencounter.com/page.php?v=v1&v2=v2

Edit the .HTACCESS file
You must make a .htaccess
RewriteEngine On
#turn on the Rewrite engine, if it's not already active