Announcement

Collapse
No announcement yet.

how to bring user to other page if they from ban ip address??

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • how to bring user to other page if they from ban ip address??

    as title say....i dont want they see any page even see the message about ban IP address. how should i do without hack file(if possible)?or any other way can do this??

    thankz...

  • #2
    Maybe you can include a conditional in the phpinclude_start template to match against the list of banned IP's (or at least banned usergroupid) and result in a header.location yourpage.html

    The option to match against might be $vboptions[banip] hm, and global.php uses verify_ip_ban();
    Last edited by Floris; Thu 29 Jan '04, 2:33am.

    Comment


    • #3
      Originally posted by floris
      Maybe you can include a conditional in the phpinclude_start template to match against the list of banned IP's (or at least banned usergroupid) and result in a header.location yourpage.html

      The option to match against might be $vboptions[banip] hm, and global.php uses verify_ip_ban();
      first thankz the reply floris

      can u give me a example,right now i dont have any idea how to use condition to do this?

      edit:i check the file u say,should i put the ban ip address into verify_ip_ban(); ??
      Last edited by squawell; Thu 29 Jan '04, 2:38am.

      Comment


      • #4
        No, don't put it in that function No need to modify any files right now. I was just trying to gather enough data to figure out how to do this properly.

        Unfortn. I wouldn't know how to test this 'ban' feature unless I want to ban myself.

        I was just trying to figure out how vB3 handles banned users and redirects them to the no permission page.

        Comment


        • #5
          Originally posted by floris
          No, don't put it in that function No need to modify any files right now. I was just trying to gather enough data to figure out how to do this properly.

          Unfortn. I wouldn't know how to test this 'ban' feature unless I want to ban myself.

          I was just trying to figure out how vB3 handles banned users and redirects them to the no permission page.
          floris thankz ur tring.... maybe u can ban my ip address in ur site to test the function... and i would let u know that work or not..

          Comment


          • #6
            Source : http://www.vbulletin.org/forum/showthread.php?t=59718

            Edit "phpinclude_start"
            Add this to the bottom:

            if ($bbuserinfo[usergroupid] == 17) {
            header("HTTP/1.0 404 Not Found");
            header("Status: 404 Not Found");
            exit;
            }

            Change 17 to your banned usergroup ID.

            Comment


            • #7
              Question: Is a guest his IP which is banned the same usergroupid as the banned usergroupid?

              Comment


              • #8
                no, the guest/not logged in usergroup is different than Banned.

                Comment


                • #9
                  Oh, then your tweak won't apply

                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...
                  X
                  😀
                  🥰
                  🤢
                  😎
                  😡
                  👍
                  👎