Hi I was trying to add IP protection in an AJAX poll but i seem to have failed. Have a look at http://www.dhtmlgoodies.com/index.html?whichScript=ajax-poller Can you please guide me (not write the code) on how I should go around doing the task? Thank you
Your site doesn't seem to want to load, but here's a very basic idea anyway: //- Make a table just to store IP Addresses, let's call it IPTable in this example //- Create and write the following function: Function AllowedToVote(){ 1) Get the IP Address of the visitor 2) Check if the IP Address already exists in the IPTable ---If yes: return False; ---If not: do nothing and continue to step 3 3) Add IP Address to the IPTable, and return True //- Just call this function before the Vote will be processed and added to the database by the original script, i.e.: if(!AllowedToVote()){ //Exit, stop, call another function, display "you've already voted", etc.. } } Code (markup): It's pretty basic but it should do the job.
are there any pre-made ones you know of that are in AJAX and also have IP control yet are free/opensource?