+ Reply to Thread (include dating software, release, and patch number!)
Results 1 to 2 of 2

Thread: Ip Tracking to fight spamming

  1. #1
    bigbird324's Avatar
    Join Date
    Jul 2009
    Posts
    94

    Default Ip Tracking to fight spamming

    Just sharing something i setup to help combat the spammers from china i have been dealing with.

    I did two things first i added this code to the end of my header.inc.php

    $fp = fopen("ips.txt", "a");
    fputs($fp, "IP: $v_ip - DATE: $v_date\n\n");
    fclose($fp);

    you need to ad it before the end of all commands

    second i created a simple .txt file called ips.txt and uploaded it to me root folder

    now you can typ in mysite.com/ips.txt and it will list all ip's that have come to your site.

    Then i just used a ip tracker to determine where the ips were and compared it to when the spammers logged in and then added their ip code to my .htaccess file with some coding to block it like this

    order allow,deny

    deny from 0.0.0.0

    allow from all

    this is a little bit of a crude method but it works.

    you can type in just the first two numbers of the ip addy as well and it will block all ip's that start with those numbers so that you can block almost an entire counrty with the first two numbers

    I have not tested this on D7 but it is supposed to have something like this built in with the next release

  2. #2

    Join Date
    Oct 2009
    Posts
    3

    Default

    It did not work for me , it just feels the ips.txt with rows of ip : Date: but no actually IP or date is registered in it.
    Perhaps you could be more specific where exactly to place your code in the header.inc.php
    I placed it at the very end and I tried other places but nothing happened.
    Thanks


    Quote Originally Posted by bigbird324 View Post
    Just sharing something i setup to help combat the spammers from china i have been dealing with.

    I did two things first i added this code to the end of my header.inc.php

    $fp = fopen("ips.txt", "a");
    fputs($fp, "IP: $v_ip - DATE: $v_date\n\n");
    fclose($fp);

    you need to ad it before the end of all commands

    second i created a simple .txt file called ips.txt and uploaded it to me root folder

    now you can typ in mysite.com/ips.txt and it will list all ip's that have come to your site.

    Then i just used a ip tracker to determine where the ips were and compared it to when the spammers logged in and then added their ip code to my .htaccess file with some coding to block it like this

    order allow,deny

    deny from 0.0.0.0

    allow from all

    this is a little bit of a crude method but it works.

    you can type in just the first two numbers of the ip addy as well and it will block all ip's that start with those numbers so that you can block almost an entire counrty with the first two numbers

    I have not tested this on D7 but it is supposed to have something like this built in with the next release

+ Reply to Thread (include dating software, release, and patch number!)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. where does affiliate tracking go?
    By happipappi in forum Dolphin General Discussion v6.00 and above
    Replies: 1
    Last Post: 11-29-2008, 01:01 AM
  2. Good Task tracking SW??
    By makenoize in forum Computer Talk
    Replies: 2
    Last Post: 10-02-2006, 03:03 AM
  3. page/visitor tracking and ROI
    By Allmates in forum Open Talk
    Replies: 0
    Last Post: 12-10-2005, 01:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts