Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Whos_Online enhancement ... need a little help


Ajeh

Recommended Posts

Posted

I am working on a whos_online enhancement based on Ed Caggiani Who's Online Enhancement.

 

I have it listing per listing the ip address and host address, if there is something in the cart, if the customer is active/inactive based on configured time settings, sort ability on the list, and time since last click is calculated.

 

What I'd like to do is a little more analysis of the ip address to know if this is a bot or not.

 

The host address shows google, but shows the whole host address.

 

I don't have the benefit of some of the environment variables since I am using the whois_online and sessions table.

 

Is there a function that I can use with the ip_address that can compare to the spiders.txt that would be similiar to comparing the current customer?

 

An example of this is at:

 

http://www.8thoctave.com/osc_freecall/admi...whos_online.php

 

If you need to see a few more addresses ... open additional windows to duplicate your self for timing tests and how the buttons change.

 

Any ideas would be appreciated.

Posted

Wouldn't it be easy to have a spiders list in the db?

Posted

fopen.... fgetss...fclose

 

[/code]

Posted

Could we for a moment pretend I am totally ignorant ... 8)

 

I have an ip_address from the whos_online table.

 

I have a list of spiders in the format:

 

almaden.ibm.com

appie 1.1

architext

ask jeeves

asterias2.0

augurfind

 

Somewhere I need to translate that ip_address into the what would normally be on the catalog a test on $_SERVER["HTTP_USER_AGENT"]

  • 2 months later...
Posted

Linda,

 

I have been trying to install your whos_online enhancement independently of Shoppe Enhancement Controller but I simply cannot do it.

 

Have you got your whos_online enhancement as a stand alone module?

 

Many Thanks.

Posted

Which one ... the one for the Catalog or the one for the Admin?

 

Both are pretty much stand alone.

 

My Admin side enhancement has a few definitions it needs but all the functions are in the whos_online.php file, if I am not mistaken. There are no changes to the database tables.

 

You will need the stylesheet additions to see things right, however.

Posted

Would it be possible to exec a dns check on the ip address and compare the return result against the spider.txt file?

 

Glad to see you around again. I have missed you humor and wit.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted
Would it be possible to exec a dns check on the ip address and compare the return result against the spider.txt file?

 

Glad to see you around again. I have missed you humor and wit.

 

It's in there ... but in a crude way.

 

I need to re-write it, but I want to modify the whos_online table to store two peices of info to speed things up.

 

I have it where you can put in spiders in the file, but I'd rather use the existing file. But to do so, I want to do it right and have the info stored in the whois_online for faster processing.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...