• [MOD] Treat bots as users with less rights 3 0 5 1
Currently:  

Author Topic: [MOD] Treat bots as users with less rights  (Read 142643 times)

0 Members and 1 Guest are viewing this topic.

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [MOD] Treat bots as users with less rights
« Reply #15 on: December 16, 2005, 02:35:50 AM »
Thats crazy..

I uploaded the changed files.. and Google was on my website in under a minute  8O

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Treat bots as users with less rights
« Reply #16 on: December 16, 2005, 02:42:49 AM »
Thats crazy..

I uploaded the changed files.. and Google was on my website in under a minute  8O
they were there all the time in an embush ;) :D
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Treat bots as users with less rights
« Reply #17 on: December 22, 2005, 03:45:48 PM »
anyone know more bot please post all of them

I  found that :

List of search engine robots that visit your web site

with : Home page/search engine , Robot identifier , IP address(es)

Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Treat bots as users with less rights
« Reply #18 on: December 23, 2005, 01:51:54 AM »
And here is another list
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Zyga

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: [MOD] Treat bots as users with less rights
« Reply #19 on: January 15, 2006, 03:03:48 PM »
Cool mod thx  :)

On site i dont need to show more options for bots but....
how can i display
"Currently active X  bot(s)"
 :?:

is it posiible without registering manualy all bots when i dont need display name of bot ?

Offline lemccoy

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • DrunkIsland
Re: [MOD] Treat bots as users with less rights
« Reply #20 on: January 27, 2006, 01:40:56 AM »
would there be anyway to determine exactly how many times the searchbot is on your site? Sessions, not page views?

works great, after i installed the endifno mod.  thanks!  my top images were going up unproportionally, now that should be fixed :-)

is there anyway to give the searchbots semi-admin access, so basically their hits don't get counted?

Offline djith

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: [MOD] Treat bots as users with less rights
« Reply #21 on: February 01, 2006, 10:14:56 PM »
i erased the possibilty to sign in at my website...don't need members, they're only annoying...

but i would like to use this MOD, does it mean that i have to re-install the sign in stuff?

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [MOD] Treat bots as users with less rights
« Reply #22 on: February 01, 2006, 11:11:48 PM »
i erased the possibilty to sign in at my website...don't need members, they're only annoying...

but i would like to use this MOD, does it mean that i have to re-install the sign in stuff?

Should work for you.

just to let u know, Looks like u have something wrong with your sitemap page

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Treat bots as users with less rights
« Reply #23 on: February 02, 2006, 12:33:24 AM »
but i would like to use this MOD, does it mean that i have to re-install the sign in stuff?
No, you dont. All you will need to do is create users for the search engines bots, that's all.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline djith

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: [MOD] Treat bots as users with less rights
« Reply #24 on: February 02, 2006, 11:31:06 PM »
hmm .... the sitemap looks a little bit nordic white.... :) but it is okay.... just have to edit layout a bit :)

thanks vano,  will make an account for the bot .....

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Treat bots as users with less rights
« Reply #25 on: February 13, 2006, 01:25:01 AM »
1) dont have answer for now

2) googlebot is the account name you need to create in your gallery

3) What you did only will privent bots from visiting download.php in the future, yet, they have previously cached pages with download link avalable. Nothing you can do about it, exept redirect bots to other pages if they try to access download.php
in download.php find:
Code: [Select]
require(ROOT_PATH.'includes/sessions.php');insert below:
Code: [Select]
if ($user_bot)
{
  header("Location: ".$site_sess->url($url, "&"));
  exit;
}

4) in step 3 at the end of the new code insert this:
Code: [Select]
$site_template->register_vars("is_bot", $user_bot);
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Treat bots as users with less rights
« Reply #26 on: February 13, 2006, 10:26:48 AM »
-Which reflect this has where this gets tag (whos_online.html???)
{if is_bot} "Dear bot, welcome to my page" {endif is_bot}
sorry, didnt understand this... the 4) answer should add ability using {if is_bot}{endif is_bot} tags in whos_online.html template...


If I these code in download.php are diverted robots, have I properly understood this??
that is correct.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Treat bots as users with less rights
« Reply #27 on: February 13, 2006, 11:00:42 AM »
this morning I had these IP address (66.249.66.37) its this the googlerobot
"Google" => "googlebot",????
or "Googlebot" => "googlebot",????
what is correct?
I've never seen Googlerobot but only Googlebot
All google bots that visiting my site have this identification:
Quote
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
So, since there is no web browser created by Google (yet), its safe to use "Google" => "googlebot"
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Treat bots as users with less rights
« Reply #28 on: March 04, 2006, 04:31:46 PM »
Hello,

since 2 weeks i have a problem with this mod. The bots are writing spam comments. And when i delte the comments they are writen from an other user...

what can i do that bots are not write a comment



Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Treat bots as users with less rights
« Reply #29 on: March 04, 2006, 04:46:47 PM »
dont allow "not trusted" bots...and remove your general "searchbot" acount. create for each "known" bot an independent account, like google, msn, yahoo, etc. this way you can track them down.

And finaly the real fix:
in details.php find:
Code: [Select]
if ($row['image_allow_comments'] == 0 || !check_permission("auth_postcomment", $row['cat_id']) || !$row) {Replace with:
Code: [Select]
if ($user_bot || $row['image_allow_comments'] == 0 || !check_permission("auth_postcomment", $row['cat_id']) || !$row) {
That should be enough, yet, if you also dont want to show comment form for the bots, then find:
Code: [Select]
$allow_posting = check_permission("auth_postcomment", $cat_id);Replace with:
Code: [Select]
$allow_posting = (!$user_bot && check_permission("auth_postcomment", $cat_id))  ? 1 : 0;
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)