Skip to main content

Posts

Stop SQL Injection Attacks Before They Stop You

This includes How SQL injection attacks work Testing for vulnerabilities Validating user input Using .NET features to prevent attacks Importance of handling exceptions Armed with advanced server-side technologies like ASP.NET and powerful database servers such as Microsoft ® SQL Server ™ , developers are able to create dynamic, data-driven Web sites with incredible ease. But the power of ASP.NET and SQL can easily be used against you by hackers mounting an all-too-common class of attack—the SQL injection attack. The basic idea behind a SQL injection attack is this: you create a Web page that allows the user to enter text into a textbox that will be used to execute a query against a database. A hacker enters a malformed SQL statement into the textbox that changes the nature of the query so that it can be used to break into, alter, or damage the back-end database. How is this possible? Let me illustrate with an example. ...

Configure Database Mail

By default we will use port 25 to configure database mail, which is usually blocked by windows firewall for security reason, try the following. 1 . Disable firewall and test if databasemail sends email. 2 . Make an exception in the windows firewall. Or this also happens when you use wrong port numbers, Just as an example use these values when setting up a database mail feature: You need to have a gmail account, which can be created free if you go to gmail.com, you can send email using gmail service free of cost :) So you can try this example and it works perfect. In database mail, first create profile, and when you create an account, use these values. Give Account name: SQL Server Alerts System Description: XYZ Outgoing mail Server ( SMTP) email id: youremailid#gmail.com ( should have gmail.com) Display Name : SQL Server Reply email : can leave blank Server name : smtp.gmail.com ( this is really important) port no : 587 ( on many website this is given as 465 which is wrong, use 58...

Creating and Sending Parameters Between Controller and View

NOTE: All material in this post got from phpeveryday CodeIgniter Step By Step Tutorial: We still wok with our first application at CodeIgniter. But we will build controller and view better. Create parameters in controller and send it to view. It will make our application more flexible. Open your hello.php within CodeIgniter/system/application/controller. Overwrite become like this: Now, open your you_view.php within CodeIgniter/system/application/views. Rewrite with following code: Point your browser to http://localhost/CodeIgniter/index.php/hello/you

CodeIgniter Installation

NOTE: All material in this post got from phpeveryday.com CodeIgniter Step By Step Tutorial: After understand about codeIgniter at this, now, we learn how to install CodeIgniter. We will install to our local computer. Before follow this instruction, please download CodeIgniter at www.codeigniter.com. 1. Open your root web server. 2. Put CodeIgniter downloaded. 3. Extract it, you will get a folder named "codeigniter_[version]". 4. For simple, rename the folder to be "CodeIgniter" only. 5. Now, open config.php within CodeIgniter\system\application\config. 6. Change base site url at line 14: 7. Point your browser to http://localhost/CodeIgniter. You should get like this:

circumtags- circular tags widget

You can find more info and download this widget for WordPress from this URL  http://www.circumtags.com/ Description CircumTags is an attention grabbing widget designed in flash, created in the form of a 3D drum. It's a fabulous plug-in and a must have for any Wordpress blog. Because it is so attention-grabbing, this tag cloud is more effective and hence more useful for the blogger. Installation Download, unzip "CircumTags" archive and put the folder into your plugins folder (/wp-content/plugins/). Activate the plugin from the Plugins menu in WP-admin panel. Use 'Options»CircumTags' page to adjust parameters. Use special template code  [circumtags]  to add the widget into a page or post. Or add php code  <?php circum_add_code(); ?>  straight in your theme files.

Remove Index.php in CodeIgniter

If you are using  Codeigniter  you are noticed that by default  index.php  will be included with your  URL . But you can easily remove index.php from your CodeIgniter’s URL so that your URL should be like: impegnotech.com/site/contact To do this just follows the following steps: Open  config.php  from  system/application/config  directory and replace $config['index_page'] = “index.php”  by  $config['index_page'] = “” Create a  “.htaccess”  file in the root of CodeIgniter directory (where the system directory resides), open the file using your favorite text editor, write down the following script and save it: RewriteEngine on RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA] In some case the default setting for  uri_protocol  does not work properly. To solve this problem just replace ...