Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Preveting multiple submissions from same ip address
Old 10-01-2008, 10:56 AM Preveting multiple submissions from same ip address
Super Talker

Posts: 129
Trades: 1
Hi,
I am working on a little script that reports links to me and them mail me the results. Now obviously, I don't want flooded with emails. So I created a table in my database and when the link is reported 5 times as inappropriate, I will be emailed.

So when 5 users click on the "report" button, I get emailed with the details on the inappropriate link.

I want to make this a little more secure. What if one user clicks on the link 5 times? This would be inaccurate data. Therefore, how can I make sure that each report submission is from a unique IP address.

Thanks.
__________________

Please login or register to view this content. Registration is FREE
yourmediaking is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-01-2008, 03:49 PM Re: Preveting multiple submissions from same ip address
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
I hate to be a killjoy, but if someone did actually want to damage your website they would most likely be going via multiple proxys (so their IP may change constantly). I suggest though you put the logger near the end of your file so if a user does resubmit before the page is done their should not be a problem.
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 10-01-2008, 04:14 PM Re: Preveting multiple submissions from same ip address
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
IP addresses should not be used for tracking like that b/c they can change by ISPs each time a page is loaded. If the users are logged in, then you could store their user id. If not logged in, then you could assign them a cookie code which gets stored.

You won't find a perfect solution unless you require all users to be logged in, but you can filter out a lot of unwanted reports.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 10-01-2008, 06:36 PM Re: Preveting multiple submissions from same ip address
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
Drop a cookie in thier cache that contains the number of times they have clicked and date stamp it! If you do this right they can click to thier hearts content but once they hit the quota they will be ignored.

Last edited by Sleeping Troll; 10-01-2008 at 06:37 PM..
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Preveting multiple submissions from same ip address
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.38290 seconds with 12 queries