i need URGENT HELP !! .htaccess problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pantymaniac
    Confirmed User
    • Feb 2003
    • 1192

    #1

    i need URGENT HELP !! .htaccess problem

    do you think i can .htacess my out.php
    for not be called from anoher site , another server ??

    Someone use my Traffic Trading Out.php From His Site
    And hitbotting my trades and my sponsor like crazy

    i need urgent .htacess code to
    stop this fucker
    This place is for RENT
  • SportLife
    Registered User
    • Jul 2003
    • 94

    #2
    I thinbk you could set the refferer for out.php to your own ip/server/domain.
    Blow Your Mind,

    SportLife.
    Icq: 331073439

    Comment

    • pantymaniac
      Confirmed User
      • Feb 2003
      • 1192

      #3
      someone know how to do it ?
      This place is for RENT

      Comment

      • SportLife
        Registered User
        • Jul 2003
        • 94

        #4
        .htaccess HOWTO?
        Blow Your Mind,

        SportLife.
        Icq: 331073439

        Comment

        • zoic
          Registered User
          • Nov 2001
          • 84

          #5
          Put this at the start of you out.php to redirect them...


          if (strpos($_SERVER['HTTP_REFERER'], 'somedomain.com') ! = = FALSE) {
          header('Location: http://www.someotherdomain.com/');
          exit;
          }


          (remove the spaces in ! = = seems to be a banned word!)

          Dave
          Last edited by zoic; 07-18-2003, 07:34 AM.

          Comment

          • psili
            Confirmed User
            • Apr 2003
            • 5526

            #6
            Don't know if this is what you're talking about but....(and please be double check my syntax as it could be bad.

            do a mod.rewrtie:


            RewriteEngine on
            RewriteCond %{HTTP_REFERER} !^$
            RewriteCond %{HTTP_REFERER} !^http://yoursite.com/.*$ [NC]
            RewriteRule out\.php$ http://redirectto.com/ [R,NC]

            // that basically says is a request to out.php isn't coming from yoursite, redirect them somewher else.


            or you could lock your "out.php" file from EVERYONE by denying access to that file in .htaccess:

            <FilesMatch out.php>
            Order deny, allow
            Deny from all
            </FilesMatch>

            Then, when you want to use the file's functions, say in "sendTraffic.php", and let noone else:

            if(// check for host / domain coming from you)
            {
            include_once("/d2/mydir/out.php");
            // do out code.
            }
            else
            header("Location: http://send.fucker.elsewhere/");
            Your post count means nothing.

            Comment

            • psili
              Confirmed User
              • Apr 2003
              • 5526

              #7
              yea, Dave's is actually quicker and easier. do his.
              Your post count means nothing.

              Comment

              • darius
                Registered User
                • Sep 2001
                • 51

                #8
                I think some people used to move their out.php into its own folder and then put an htaccess like this in the folder.

                AuthUserFile /dev/null
                AuthGroupFile /dev/null

                RewriteEngine On

                RewriteCond %{HTTP_REFERER} !^http://yourdomain.com [NC]
                RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com [NC]
                RewriteRule /* http://www.yourdomain.com/error.html [R,L]


                you just have to change the include line on your main page to point into this folder.

                Comment

                • Calvinguy
                  Confirmed User
                  • Oct 2002
                  • 1752

                  #9
                  Don't use htaccess. Use some scripting like Dave's

                  Comment

                  • darius
                    Registered User
                    • Sep 2001
                    • 51

                    #10
                    nice code Dave

                    that would be easier

                    Comment

                    • vending_machine
                      Confirmed User
                      • Jun 2002
                      • 1070

                      #11
                      If it really is a hitbot, keep in mind that there probably will not be any referrer info..

                      Comment

                      • swedguy
                        Confirmed User
                        • Jan 2002
                        • 7981

                        #12
                        Originally posted by vending_machine
                        If it really is a hitbot, keep in mind that there probably will not be any referrer info..
                        Think about it for a sec.

                        Lets say that domainA.com is hitbotting you.
                        How does 99% of the trade scripts work? The prod/return is based on how many times a person from domainA.com clicks.

                        If the hitbot doesn't carry a referer, then domainA.com isn't sending productive traffic. The trade script doesn't send back to unproductive traffic.

                        Lets take couple of examples

                        Hits sent with referer:
                        domainA.com send 1000 hits with referer
                        those 1000 hits clicks 2000 times = 200% prod
                        The trade script willl send good traffic back to domainA.com

                        Hits sent without referer:
                        domainA.com send 1000 hits without referer
                        those 1000 hits clicks 2000 times, but no referer was sent so the trade script doesn't know that it's coming from domainA.com = 0% prod
                        The trade script will not send back anything.


                        So why would a hitbot not send a referer?
                        Last edited by swedguy; 07-18-2003, 08:19 AM.

                        Comment

                        Working...