Combating Scammers - PHP ideas required.

Discussion in 'PHP' started by DarrenC, Jul 23, 2006.

  1. #1
    I have a friend who runs an online warehouse selling bulk sunglasses - he has started to get visitors from Nigeria and other dodgy countries scamming his clients by completing an enquiry form asking for more information on the product.

    The email enquiry form is PHP.

    Is there a script or any programming that can be done within the email enquiry form to stop scammers from doing this? He keeps blocking IP addresses, but the majority of the time they spam before he can block them.

    Any thoughts?

    Darren
     
    DarrenC, Jul 23, 2006 IP
  2. danielbruzual

    danielbruzual Active Member

    Messages:
    906
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    70
    #2
    He could block the ip range of those countries from where he is getting a lot of phony enquiries (check Ip2Location). But this won't always work since they can just use proxies.
     
    danielbruzual, Jul 23, 2006 IP
  3. DarrenC

    DarrenC Peon

    Messages:
    3,386
    Likes Received:
    154
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, and that's true about proxies - I've told him about them already.

    I'll check that IP2Location site.

    Is it possible to block everyone from a specific country?
     
    DarrenC, Jul 23, 2006 IP
  4. coderlinks

    coderlinks Peon

    Messages:
    282
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Can you elaborate? I dont understand. Your friend runs an online warehouse. How can someone scam his clients by asking for info? If you are getting too many requests and if you think they are being automated, try adding a CAPTCHA verification system. I may be able to help if you explain more.

    Thomas
     
    coderlinks, Jul 23, 2006 IP
  5. danielbruzual

    danielbruzual Active Member

    Messages:
    906
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    70
    #5
    Yes it is, you can either block all IPs from a specific country or you can allow only visitors from specific countries (where you sell the most, i.e. USA, Canada, UK, etc) to have access to the site.
     
    danielbruzual, Jul 23, 2006 IP
    DarrenC likes this.
  6. DarrenC

    DarrenC Peon

    Messages:
    3,386
    Likes Received:
    154
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Coderlinks, I'm not happy explaining the full details online, but it's all to do with credit card details. He doesn't think the requests are automated, and I've heard that the CAPTCHA system is flawed and not secure neither.

    Thanks Daniel.

    It looks like he's going to have to block a full country IP range through his .htaccess file, and update the .htaccess file monthly as changes are made to the IP addresses.

    Unless anyone can think of a more automated way of blocking ip users from a specific country.
     
    DarrenC, Jul 23, 2006 IP
  7. coderlinks

    coderlinks Peon

    Messages:
    282
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can code a ban system that uses a Geo-IP database like that at:
    http://www.maxmind.com/app/geoip_country

    Their lite version is not as accurate as their paid version. I knew about another free ip-to-country database but I dont remember...

    [EDIT] Got it!! Its http://ip-to-country.webhosting.info/

    You can make a system with an easy interface for adding and removing countries from a list. Then you can include an authentication file at the top of each page of the site. It will check the IP of the user and give an error message, if he is from a banned country.

    Thomas
     
    coderlinks, Jul 23, 2006 IP
    DarrenC likes this.
  8. DarrenC

    DarrenC Peon

    Messages:
    3,386
    Likes Received:
    154
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Excellent.

    Thanks for the advice guys - much appreciated.
     
    DarrenC, Jul 23, 2006 IP
  9. relixx

    relixx Active Member

    Messages:
    946
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    70
    #9
    Captcha systems are not the solution in themselves, they are merely a part of the solution. While you ahvent given any details into the form, would it be possible to setup an approval system like blogs have, where you have to approve each comment made? While it may delay things you will be able to remove all the spam...
     
    relixx, Jul 23, 2006 IP
  10. DrMalloc

    DrMalloc Peon

    Messages:
    130
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #10
    One of the commerce sites i own contains a contact form, and it gets used by a lot of scammers to attempt fraudulent orders. They're easy to spot a mile off however, 100 products wanted immediately shipped to nigeria and paid for by money order? Scamtastic! I don't think i completely understand the question you're asking though, how are the scammers fooling customers? is the query system public?
     
    DrMalloc, Jul 23, 2006 IP