Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Tue Nov 08, 2005 6:24 pm |
|
This is just a simple hack to NukeSentinel(tm) to stop tracking users who you don't need to track, like yourself, for instance . Since I, as owner/admin am on all the time, I want to stop the tracking and adding to the hit counter, regardless of what machine and/or IP I am logging in from. Yes, you can do this through the IP but if your IP changes frequently, as most do, then you have a small, yet still inconvenient, maintenance. And, you don't always know when your IP has been refreshed, so you have the added attraction of having to check that! So, here is but one way to accomplish that. I have chosen to only circumvent the IP tracking and nothing else, so be aware that this is not stopping NukeSentinel in any other way.
Is this a security risk? No. But, if a visitor was able to guess your password, and your authid name/password (of course you are using that ) then you would not have his IP that he used. You would still have your server logs , so use at your own risk.
Edit includes/nukesentinel.php
FIND
Code:// IP Tracking
// CAUTION: This function can slow your sites load time
if($ab_config['track_active'] == 1 AND !is_excluded($nsnst_const['remote_ip'])) {
|
CHANGE TO
Code:// IP Tracking
// CAUTION: This function can slow your sites load time
$bypassTrackingList = array('user1'); // Raven 11/8/2005
$bypassTracking = FALSE; // Raven 11/8/2005
if (in_array(addslashes(strtolower($uinfo['username'])),$bypassTrackingList, TRUE)) $bypassTracking = TRUE; // Raven 11/8/2005
if($ab_config['track_active'] == 1 AND !is_excluded($nsnst_const['remote_ip']) AND !$bypassTracking) { // Raven 11/8/2005
|
Of course, in this line $bypassTrackingList = array('user1');, you would add the real username(s), separated by a comma and enclosed in tick marks, like $bypassTrackingList = array('user1','user2','user3'); |
|
|
aces
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Aug 24, 2006
Posts: 1
|
Posted:
Wed Aug 23, 2006 11:08 pm |
|
Hi Im using the latest ravenuke 2.02.02 and sentinel 2.5.02 and the above isnt working for me, not sure what im doing wrong or if this just no longer works. please advise, thanks. |
|
|