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

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

0 Members and 1 Guest are viewing this topic.

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [MOD] Treat bots as users with less rights
« Reply #30 on: March 06, 2006, 10:51:28 PM »
what can i do that bots are not write a comment

That's quite easy, Jens.

I had that problem with "bots" but then realised, that there were ppl visiting my site "spamming" the comments and guestbook, not bots...
You don't have to track the bot down - anyboy can go to your page using  FF with a changed "User_Agent" to see the content.
You don't even have to install anything more, than you already have, if you followed the steps from the first post...

Just hide the comment forms from the bots with the {ifno is_bot} and bots won't be able to add any unwanted text...

Hide also all functions from the bots, which are not useful for them, like: Lightbox, PM, E-Cards, Download-buttons etc.

MAяTRIX


Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Treat bots as users with less rights
« Reply #31 on: March 06, 2006, 11:08:48 PM »
Thanks for this....
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] Treat bots as users with less rights
« Reply #32 on: April 14, 2006, 08:48:19 PM »
hello,
i have insert in my memberlist the pm links.
http://www.4homepages.de/forum/index.php?topic=1954.msg54648#msg54648

 how can i delete the pm link for the member "searchbot" ?

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 #33 on: April 15, 2006, 12:59:31 AM »
you can use {ifno is_bot}...{endifno is_bot} as it explained in step 4.2
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 Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] Treat bots as users with less rights
« Reply #34 on: April 15, 2006, 08:58:36 AM »
hello,
yes, you are right, v@no.. but i can't insert this in a php file, the memberlist is "only" a php file...
i don't know how i insert the tags in the memberlist.php..

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Treat bots as users with less rights
« Reply #35 on: April 19, 2006, 03:48:16 PM »
Hallo Loda,

ich habe die Ausblendung der PM-Links für die Bots in der Memberlist wie folgt gelöst ...
Code: [Select]
$url_pm_user = $site_sess->url(ROOT_PATH."pm.php?action=new&user_id=".$user_row['user_id']."");
    if ($user_id == XXX || $user_id == XXX || $user_id == XXX) { // XXX :  user_id für Bots ohne PM-Link
       $user_pm_button = "<font color=\"#888888\"><small>-Bot-</small></span> ";
    } else {
       $user_pm_button = "<a href=\"".$url_pm_user."\"><img src=\"".get_gallery_image("pm.gif")."\" border=\"0\" alt=\"".$lang['pm_to_user']."\"></a>";
    }

mawenzi
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 Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] Treat bots as users with less rights
« Reply #36 on: April 19, 2006, 06:21:39 PM »
ahhh...
danke! leider funktionieren einige sachen mit {if is_bot} bla bla {endif...
nicht so..

-------------

thank you!
but anything ist wrong on my site with the {if is_bot} tag... i don't know...

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Treat bots as users with less rights
« Reply #37 on: April 19, 2006, 06:31:54 PM »
@ Loda,

mein Lösungsvorschlag arbeitet unabhängig von der Funktion des {if is_bot} tag ... !
Die Änderung ist in der memberlist.php vorzunehmen und an Stelle von ...
Code: [Select]
$url_pm_user = ...
$user_pm_button = ...
... zu verwenden. Das sollte auch bei dir funktionieren !

mawenzi
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 Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] Treat bots as users with less rights
« Reply #38 on: April 19, 2006, 07:51:45 PM »
ja, danke..
das funktioniert! keine frage!
aber alles andere, was ich ausblenden wollte, macht ärger..  :(
sorry.. kam etwas komisch rüber von mir..

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [MOD] Treat bots as users with less rights
« Reply #39 on: April 20, 2006, 04:42:15 PM »
Was bedeutet "macht ärger"?
Kannst du das etwas genauer definieren?
Bei mir funktioniert alles ohne alle probleme - schau mal bitte nach,
ob du alles schritt für schritt richtig implementiert hast...
MAяTRIX


Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] Treat bots as users with less rights
« Reply #40 on: April 20, 2006, 04:51:53 PM »
Was bedeutet "macht ärger"?
Kannst du das etwas genauer definieren?
Bei mir funktioniert alles ohne alle probleme - schau mal bitte nach,
ob du alles schritt für schritt richtig implementiert hast...

ärger machen bei mir nur die {ifno is_bot} tags.. ich weiss nicht warum, bin auf der suche...
(vielleicht habe ich etwas nicht richtig gelesen, verstanden oder falsch eingebaut...)

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [MOD] Treat bots as users with less rights
« Reply #41 on: April 20, 2006, 05:05:41 PM »
Falls ich das also richtig vestehe, funktionieren die "ifno" tags gar nicht???
(also nicht nur isbot, sondern alle ifno varianten)
MAяTRIX


Offline lemccoy

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • DrunkIsland
Re: [MOD] Treat bots as users with less rights
« Reply #42 on: June 01, 2006, 01:40:32 PM »
Hi

I added google ads to my template, and now it seems like people are being automatically logged in as googlebot and able to send messages as googlebot?  It seems when I log out from being googlebot it still logs me in after a few page clicks? 

What is going on? 

Thanks

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [MOD] Treat bots as users with less rights
« Reply #43 on: June 01, 2006, 02:21:04 PM »
That depends on what you did change in the code to include google-ads...
You describe it as if you'd forget to delete MS explorer from the array after testing or smt similar...
MAяTRIX


Offline lemccoy

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • DrunkIsland
Re: [MOD] Treat bots as users with less rights
« Reply #44 on: June 01, 2006, 02:53:28 PM »
but I never changed my sessions.php file for adding the adsense code?  just the templates?