| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Aug 2007
Posts: 2,172
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Referer check for click validation Hi I have the following snippet in my script as a simple fraud prevention device, to avoid counting clicks that do not originate from the same website. What are your comments on it? PHP Code: Do you use anything similar on your site?
__________________ ______________________________________ Help with crosswords http://lettercombination.com Pitfalls of Java http://javasyntax.com _______________ f o r . s a l e ______________ |
| |
| | #2 (permalink) |
| i love automation Join Date: Nov 2007 Location: xrvel.com
Posts: 1,620
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | What about this ? Add an "i" in preg_match.: PHP Code:
__________________ |
| |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Aug 2007
Posts: 2,172
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Thanks, I added your suggestion. Nothing exciting it is a site listing for online estimates: http://nestimates.com Good experimental ground for some of my ideas though
__________________ ______________________________________ Help with crosswords http://lettercombination.com Pitfalls of Java http://javasyntax.com _______________ f o r . s a l e ______________ |
| |
| | #4 (permalink) |
| i love automation Join Date: Nov 2007 Location: xrvel.com
Posts: 1,620
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Other method you can use is creating a link with unique id. Preparing the functions... PHP Code: PHP Code: Checking the clicks PHP Code:
__________________ |
| |