Ban User Snippets


16 February, 2012   

ASP code to ban user based on their IP address

16 February, 2012   

ASP code example how to ban a user by IP address

This code is an example of Ban a user based on IP address

Apache Code example for blocking based on User-Agent Header

20 April, 2013   

You can create your own Exceptions in PL/SQL

The below snippet will create a MySQL user and grant them all permissions on the given database.

05 June, 2014   

Bans most (but not all) proxy servers by detecting common "FORWARD" signatures in the header.

15 November, 2011   

Showing how to read data (an integer) from user.

Example: There is a table, 'user', with a column, 'clear', containing values such as: `clear \'animal\' \'pass'\ ` and we would like to retrieve 'animal' and 'pass' ( without the pre & post \' )

24 July, 2013   

An example of how to use the mysql_real_escape_string

01 October, 2013   

This class has lots of common functionality built right into it. It also supports Mysql and Sphinx.

09 July, 2013   

Show user's IP Address using a few lines of code, Place the code where you want the IP address to appear:

Detect Javascript On/Off, With Notification: If JavaScript is on the user gets a welcome message. If off, the user is instructed to turn it on.

22 January, 2011   

The example here is if you had a form on a website that when submitted, needed to use that information to go to a special URL where the login information was all appeneded to the URL. You could have the form post with method GET, but that is limited to the typical ?variable=foo&variable2=bar format.

Query to find the most recent logins for a particular user

06 February, 2012   

ASP Forms and User Input from HTML form

16 February, 2013   

Binds a php variable to an SQL statement using the bindParam() method

30 March, 2011   

Need to people out if they have been inactive for too long? Do it with this piece of code. This takes 3 functions to complete the inactive session task. 1. We need to check if the person is actually logged in using our isLogged function 2. We need the function to check the time the page loaded, and when the last page was loaded 3. We need a...

04 May, 2011   

Need to people out if they have been inactive for too long? Do it with this piece of code. Introduction ----------------------- This takes 3 functions to complete the inactive session task. 1. We need to check if the person is actually logged in using our isLogged function 2. We need the function to check the time the page loaded, and when...

27 February, 2012   

C++ while loop - User enters in the number of looping times