Exclusive eBooks, Software Solutions, Quality Guaranteed
 
Web NukeBiz
Welcome to NukeBiz · Members
Amazon
show cart or checkout0 items
Cart Value: 0.00

Forums » DragonflyCMS Projects » IP Tracker » Request - Integrating Referrers
Request - Integrating Referrers
Keeping tabs on visitors, bots and modules being used.
Topic initiation via Bugger.

Go to page 1, 2  Next
Post new topic    Reply to topic    Printer Friendly Page     Forum Index »  Management » IP Tracker

View previous topic :: View next topic  
Author Message
norbie
Supervisor
Supervisor

Offline Offline
Joined: Jul 16, 2005
Posts: 18

PostPosted: Tue Nov 01, 2005 12:50 am
Post subject: Request - Integrating Referrers

Would it be possible to record the reffering page when a new IP address hits the site.

This would be so that I can see where new members have actually come from, allowing me to see that, and also there's some trouble makers coming from a couple of sites, and I want to ban them.


norbie please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Tue Nov 01, 2005 1:03 pm
Post subject: Re: Request - Integrating Referrers

Can be done, though it does require an extra field which would also increase the database size an estimated 15 to 20%.

Hence, this would have to be an admin option - the current version (9.0.1.0) that I am running uses a database table for config values, though I will most likely save this to cache to eliminate the extra query it generates.

Exclusions are saved in file arrays to avoid extra database useage, thus eliminating the old config file.

In view of another request for country location, I may also add capability to display country.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
norbie
Supervisor
Supervisor

Offline Offline
Joined: Jul 16, 2005
Posts: 18

PostPosted: Tue Nov 01, 2005 3:19 pm
Post subject: Re: Request - Integrating Referrers

Sounds great if it can be done Phoenix Smile

It's not that urgent though, so no pressure.


norbie please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Wed Nov 02, 2005 5:46 am
Post subject: Re: Request - Integrating Referrers

This should do what you want,
nukebiz.com/IP_Tracker...72977.html

Note, I have truncated the display, but the hyperlink still contains the full referer link, otherwise your page gets stretched rather badly.

The next version is also more language compliant.
Still some tidying up to do on the new admin section, but it scrubs up fairly well Smile


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
norbie
Supervisor
Supervisor

Offline Offline
Joined: Jul 16, 2005
Posts: 18

PostPosted: Wed Nov 02, 2005 5:50 am
Post subject: Re: Request - Integrating Referrers

That looks fantastic Smile

Thankyou for your efforts Phoenix Smile


norbie please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Tue Nov 08, 2005 8:39 am
Post subject: Re: Request - Integrating Referrers

After running the referer bit for a while now, it is clear that this should only be viewable by admin.

I have numerous spam referers being listed which, when indexed by the searchens, will eventually result in further unwanted referal spammers.

I could add a config option to allow members to view, though I can't think of a reason why I would need them to have that capability - what do you think?

btw, some handy htaccess code for screwing the referers - in this case, a particularly persistent russian bastard
Code::
SetEnvIfNoCase Remote_Addr "^81.177.[0-9]{1,3}.[0-9]{1,3}$" RefererSpam
RewriteCond %{ENV:RefererSpam} ^1$
RewriteCond %{HTTP_REFERER} ^(.*)$
RewriteRule ^(.*)$ %1 [R=301,L]
The beauty of this code is that firstly, it sends it right back to the specific referer and secondly, unlike using "deny", it doesn't create 404 errors that Dragonfly's error reporting system then sends to me, negating the benefits of that system Smile


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
norbie
Supervisor
Supervisor

Offline Offline
Joined: Jul 16, 2005
Posts: 18

PostPosted: Tue Nov 08, 2005 3:19 pm
Post subject: Re: Request - Integrating Referrers

I don't see any reason why non admins would need to view the module at all.

I just set the main Modules Permissions to me only.

I either just deny IPs, or use a script like this for unwanted people:

Code::
#RewriteCond %{REMOTE_ADDR} ^210.219.117.123$
#RewriteRule ^.*$ http://127.0.0.1 [L] 


norbie please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Tue Nov 08, 2005 4:02 pm
Post subject: Re: Request - Integrating Referrers

yeah, I've done numerous variations on the blackhole in the past, mostly legal, and some not, so I'm just getting some perverted pleasure from spamming the spammers with their own spam :twisted:


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Wed Nov 09, 2005 12:56 am
Post subject: Re: Request - Integrating Referrers

New version will be released shortly - decided to omit country database because it's just too damned large at 2.4 MB.

The choice was to either lookup the IP at the time IPT records are created and save the extra field, or lookup the IP when IPT generates its report.

As it is, 100,000 records takes up 17 MB so adding the extra fields will blow it out further, and adding extra fields or doing the extra query will just increase what is already an unhealthy query time, even with the 200 db queries I just eliminated.

I already use the lookup table for other purposes, so it works, but at a cost.

Maybe I'll just add a whois link - costs no server resources.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
norbie
Supervisor
Supervisor

Offline Offline
Joined: Jul 16, 2005
Posts: 18

PostPosted: Wed Nov 09, 2005 1:17 am
Post subject: Re: Request - Integrating Referrers

WHOIS link sounds fine Smile

Shame there isnt a central WHOIS server, rather than having to switch between RIPE, ARIN etc.


norbie please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Wed Nov 09, 2005 7:07 am
Post subject: Re: Request - Integrating Referrers

So far we can have,
www.samspade.org/t/ipw....146.42.72
api.hostip.info/get_ht...ition=true
www.easywhois.com/?mod....146.42.72
www.dnsstuff.com/tools....146.42.72


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Wed Nov 09, 2005 5:14 pm
Post subject: Re: Request - Integrating Referrers

Hey, norbie, check out your welcome at the top of the page Smile

Then check out IPT again - I have added a hyperlink to the Host Name data that should adequately cover anything you can think of.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
norbie
Supervisor
Supervisor

Offline Offline
Joined: Jul 16, 2005
Posts: 18

PostPosted: Wed Nov 09, 2005 5:22 pm
Post subject: Re: Request - Integrating Referrers

Sorry I don't follow.

Was I looking at this?
Quote::
Hey norbie - nice to have you back!

And do I need to redownload the IP Tracker files from that link you PMed me?

Sorry - early morning!


norbie please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Wed Nov 09, 2005 5:23 pm
Post subject: Re: Request - Integrating Referrers

nah, refresh, should be different message in top


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Wed Nov 09, 2005 5:25 pm
Post subject: Re: Request - Integrating Referrers

hmm, silly me - which theme you using?
Try BizPro theme.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index »  Management » IP Tracker
Page 1 of 2
All times are GMT + 9.5 Hours
Go to page 1, 2  Next



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum