![]() |
|
#1
|
|||
|
|||
Need help with IP addresses and a databaseHello,
I have a database that I use to keep track of those that visit my website, and each link that they view, it updates a count so that the next viewer can tell how many people have viewed the link. I created a script that allows the database to be updated once per day, per link. But I want to prevent the script from updating if certain IP addresses, or a range of ip addresses click on the link. (Google Bot, Yahoo Bot, my home IP). Like a range of IP addresses. Here is the script: PHP Code:
Thanks, Richard |
|||
|
#2
|
||||
|
||||
Re: Need help with IP addresses and a databaseHow are the range of IPs - the ones you want to ignore - stored?
The bots off Google, Yahoo, MSN and others, include many different IP addresses. How do you identify them all? |
|
#3
|
|||
|
|||
Re: Need help with IP addresses and a databaseFor web bot, you may try www.crawltrack.fr
|
|
#4
|
|||
|
|||
Re: Need help with IP addresses and a databaseRight now I have them stored both as regular 76.20.157.253, and I also have them stored in there long format. Here is a snapshot of the database. Now, maybe I shouldn't be worrying about the number of times a link is selected being updated by the Google bots, yahoo bots or whatever. If thats the case, just let me know.
Thanks, Richard |
|
#5
|
||||
|
||||
Re: Need help with IP addresses and a databaseI'll be honest, I really don't understand your question (again).
Anyway, I see a problem with your script: PHP Code:
There appears to be 2 DB tables in your script and I don't know how they relate. |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Selling Server | darkneal128 | Managed / Dedicated Servers | 4 | 28-Mar-2006 18:01 |
| My Apache Webserver is publicly accessible only from certain IP addresses | getwhatUwant | Apache Web Server Forum | 0 | 04-Aug-2005 23:06 |
| Memory addresses | CyrixOnFire | Computer Software Forum - Windows | 0 | 30-Mar-2004 12:50 |
| Links and E-mail addresses in forum vs spam bots | BobbyDouglas | GIDForums™ | 1 | 29-Feb-2004 16:23 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The