.htaccess help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Web_Mistress
    Confirmed User
    • Feb 2001
    • 374

    #1

    .htaccess help

    I've had my host try, and I've tried, and I can't get a .htaccess to work, darn it. I want something that will go to a 404 error page, and prevent hotlinking.

    I tried this:

    ErrorDocument 403 http://www.xxx-free-porn.net/404.html
    ErrorDocument 404 http://www.xxx-free-porn.net/404.html
    ErrorDocument 500 http://www.xxx-free-porn.net/404.html

    AuthUserFile /dev/null
    AuthGroupFile /dev/null
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://www.xxx-free-porn.net/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://xxx-free-porn.net/.*$ [NC]
    RewriteRule .*$ / [R]


    And every page you type in just bounces right back to the main page. What am I doing wrong? I tried searching on a few boards, and I can't find the .htaccess tutorials.

    Thanks alot.
    XXXPorntastic Link List Submit your site today!
  • ldinternet
    Confirmed User
    • Apr 2001
    • 8245

    #2
    Hi Web Mistress,

    Create a blank page on your site called success.html and updload it to the root directory. On that page put the text "success!"

    Replace your htaccess code with this

    Code:
    ErrorDocument 403 [url="http://www.xxx-free-porn.net/success.html"]http://www.xxx-free-porn.net/success.html[/url] 
    ErrorDocument 404 [url="http://www.xxx-free-porn.net/success.html"]http://www.xxx-free-porn.net/success.html[/url] 
    ErrorDocument 500 [url="http://www.xxx-free-porn.net/success.html"]http://www.xxx-free-porn.net/success.html[/url] 
    
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://xxx-free-porn.net.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.xxx-free-porn.net.*$ [NC]
    RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ [url="http://www.xxx-free-porn.net/success.html"]http://www.xxx-free-porn.net/success.html[/url]
    Then type in something that doesn't exist - such as http://www.xxx-free-porn.net/wf9wef09m34f9m3/

    If it bounces you to success.html then you've done it. You can change http://www.xxx-free-porn.net/success.html to anything you like, such as sponsor codes, cgi-bin/out.cgi (link trades), etc

    Comment

    • ldinternet
      Confirmed User
      • Apr 2001
      • 8245

      #3
      "I put the master in webmaster"

      You'd better fucken believe it.

      Comment

      • RedShoe
        赤い靴 call me 202-456-1111
        • Feb 2001
        • 14831

        #4
        You need to add this to the very bottom of your htaccess file

        RewriteRule /* http://usexfan.com/[R,L]
        Ok,ok, you can change the url

        See, you don't have any place to send the surfer.
        Or try these articles: http://www.theadultwebmaster.com/art...htaccess.phtml
        http://www.newmediaone.com/scripts/index.shtml
        scroll down to the error robot.

        I hope this info helps

        ------------------
        ...:::End Of Line:::...
        ------------------
        * uSexFan.com
        * ICQ : 114683191

        SPECIALTY COSTUMES • PROPS • FX
        Superheroes • Monsters • Robots
        PM for details


        For any manufacturing needs. Adult or otherwise.

        aka BonsHigh on Insta
        Bonsai weed plants


        Comment

        • CDSmith
          Too lazy to set a custom title
          • May 2001
          • 51460

          #5
          Um, total dummy question, but where exactly does that code go?

          Between the "head" "/head" tags?

          Where??

          Is it added to all html pages? HELP! (I put the "dummy" in "webmastering 4 dummies"
          <font face="Arial">___________
          CD
          * <a href="http://www4.smutserver.com/babes/bgnetwork/submit.html" TARGET="_blank"><font color="#27FFFC">Babe Galleries Network</font></a> < -- submit galleries here
          * <a href="http://www.oliver-klozov.com/cgi-bin/refer.cgi?ref=cdsmithok" TARGET="_blank"><font color="#CBE6FF">60% of all signups, 40% of all rebills</font></a> + High Quality free content, mthly cash bonuses
          * <a href="http://members.home.net/cyberdogs/Anti-Censorship%20Site/" TARGET="_blank"><font color="#FFCCCC">Sites Against Censorship</a><font color="#EDDDDD"> Support us, support your future</font></font>
          Promote Wildmatch, ImLive, Sexier.com, and more!!

          ALWAYS THE HIGHEST PAYOUTS: Big Bux/ImLive SIGNUP ON NOW!!!

          Put some PUSSYCA$H in your pocket.
          ICQ me at: 31024634

          Comment

          • Web_Mistress
            Confirmed User
            • Feb 2001
            • 374

            #6
            Ok, I copied it and called it .htaccess ftp'd it in Ascii (it came out on one long line, is that ok?)

            Named a file success.html uploaded it.

            Typed in a page that didn't exsist and got file cannot be found.

            ??????
            XXXPorntastic Link List Submit your site today!

            Comment

            • Web_Mistress
              Confirmed User
              • Feb 2001
              • 374

              #7
              CD Smith, it goes in a separate file called .htaccess and it is uploaded to every directory you want to protect. It will protect that directory, and all other sub directories.

              If it doesn't work right, it can keep anyone from accessing your pages. Which mine keeps doing.

              It has to be uploaded in ASCII to work.
              XXXPorntastic Link List Submit your site today!

              Comment

              • TFCash
                Confirmed User
                • Apr 2001
                • 1738

                #8
                Web_Mistress -

                Are you sure that your host has .htaccess open for you ?? Sounds like they haven't given you permission to use .htaccess to override anything.


                Tim
                TeenFlood.com Online since 1998.

                TFCash KissMeGirl
                VirginRiches MondoBucks

                tim at tfcash.com or submit a ticket at our HelpDesk

                Comment

                • justined
                  Confirmed User
                  • Mar 2001
                  • 169

                  #9
                  you also need to put you resolving ip in there:-
                  RewriteCond %{HTTP_REFERER} !^http://YOUR IP/.*$ [NC]
                  RewriteCond %{HTTP_REFERER} !^http://YOUR IP/.*$ [NC]

                  or you can still get hotlinked via your ip addy.

                  J
                  People are more violently opposed to fur than leather
                  because it's safer to harass rich women than motorcycle gangs.

                  Comment

                  • CDSmith
                    Too lazy to set a custom title
                    • May 2001
                    • 51460

                    #10
                    You people really gotta learn to explain what you mean (Justin!!)

                    I made the .htaccess file (you didn't say whether it was a text file, or an html file or what??), I uploaded it in asc II mode into one of my little-used subfolders, and I can no longer access to one page in that folder.

                    You know, if one of you could just copy and paste a full working code, COMPLETE, we could just change the urls and use it, no?

                    <font face="Arial">___________
                    CD
                    * <a href="http://www4.smutserver.com/babes/bgnetwork/submit.html" TARGET="_blank"><font color="#27FFFC">Babe Galleries Network</font></a> < -- submit galleries here
                    * <a href="http://www.oliver-klozov.com/cgi-bin/refer.cgi?ref=cdsmithok" TARGET="_blank"><font color="#CBE6FF">60% of all signups, 40% of all rebills</font></a> + High Quality free content, mthly cash bonuses
                    * <a href="http://members.home.net/cyberdogs/Anti-Censorship%20Site/" TARGET="_blank"><font color="#FFCCCC">Sites Against Censorship</a><font color="#EDDDDD"> Support us, support your future</font></font>
                    Promote Wildmatch, ImLive, Sexier.com, and more!!

                    ALWAYS THE HIGHEST PAYOUTS: Big Bux/ImLive SIGNUP ON NOW!!!

                    Put some PUSSYCA$H in your pocket.
                    ICQ me at: 31024634

                    Comment

                    • Web_Mistress
                      Confirmed User
                      • Feb 2001
                      • 374

                      #11
                      You have to use notepad, or something like Homesite. You can't use Frontpage CD, or anything like that that adds characters to it.

                      My host has tried about 10 different .htaccess files, and they will work for a little while, then I'll type in an address and I'll get a blur down in the status bar of it frantically trying to access a page...looks like it goes into an endless loop. When that happens, I just pull the .htaccess file off and bam, works fine.

                      I have no idea (and they don't either) know what causes that. I've asked them so many times to try and fix it, I hate to ask again, because they don't seem to get the same error.
                      XXXPorntastic Link List Submit your site today!

                      Comment

                      • CDSmith
                        Too lazy to set a custom title
                        • May 2001
                        • 51460

                        #12
                        I don't use Frontpage, I use Textpad.

                        I got it working now.


                        <font face="Arial">___________
                        CD
                        * <a href="http://www4.smutserver.com/babes/bgnetwork/submit.html" TARGET="_blank"><font color="#27FFFC">Babe Galleries Network</font></a> < -- submit galleries here
                        * <a href="http://www.oliver-klozov.com/cgi-bin/refer.cgi?ref=cdsmithok" TARGET="_blank"><font color="#CBE6FF">60% of all signups, 40% of all rebills</font></a> + High Quality free content, mthly cash bonuses
                        * <a href="http://members.home.net/cyberdogs/Anti-Censorship%20Site/" TARGET="_blank"><font color="#FFCCCC">Sites Against Censorship</a><font color="#EDDDDD"> Support us, support your future</font></font>

                        [This message has been edited by CDSmith (edited 05-31-2001).]

                        [This message has been edited by CDSmith (edited 05-31-2001).]
                        Promote Wildmatch, ImLive, Sexier.com, and more!!

                        ALWAYS THE HIGHEST PAYOUTS: Big Bux/ImLive SIGNUP ON NOW!!!

                        Put some PUSSYCA$H in your pocket.
                        ICQ me at: 31024634

                        Comment

                        • CDSmith
                          Too lazy to set a custom title
                          • May 2001
                          • 51460

                          #13
                          Yep, it works
                          <font face="Arial">___________
                          CD
                          * <a href="http://www4.smutserver.com/babes/bgnetwork/submit.html" TARGET="_blank"><font color="#27FFFC">Babe Galleries Network</font></a> < -- submit galleries here
                          * <a href="http://www.oliver-klozov.com/cgi-bin/refer.cgi?ref=cdsmithok" TARGET="_blank"><font color="#CBE6FF">60% of all signups, 40% of all rebills</font></a> + High Quality free content, mthly cash bonuses
                          * <a href="http://members.home.net/cyberdogs/Anti-Censorship%20Site/" TARGET="_blank"><font color="#FFCCCC">Sites Against Censorship</a>[i]<font color="#EDDDDD"> Support us, support your future</font></font>

                          [This message has been edited by CDSmith (edited 05-31-2001).]
                          Promote Wildmatch, ImLive, Sexier.com, and more!!

                          ALWAYS THE HIGHEST PAYOUTS: Big Bux/ImLive SIGNUP ON NOW!!!

                          Put some PUSSYCA$H in your pocket.
                          ICQ me at: 31024634

                          Comment

                          • justined
                            Confirmed User
                            • Mar 2001
                            • 169

                            #14
                            sorry CD for being a little vague.
                            A working copy for anyone else that might need it:- http://www.amateurlodge.com/hotstop.txt

                            J
                            People are more violently opposed to fur than leather
                            because it's safer to harass rich women than motorcycle gangs.

                            Comment

                            • Web_Mistress
                              Confirmed User
                              • Feb 2001
                              • 374

                              #15
                              Ok, I got it working, I had the line breaks wrong. What does that last line do? I put the URL to a sponsor, do they get that if they try to hotlink? Just curious. It does go to an error page I have set up now!

                              Thanks. Hopefully, I won't get the weirdness.

                              XXXPorntastic Link List Submit your site today!

                              Comment

                              • justined
                                Confirmed User
                                • Mar 2001
                                • 169

                                #16
                                the last line is the file types you're protecting (jpg, gif) it's set to stop any upper/lowercase combinations.

                                J
                                People are more violently opposed to fur than leather
                                because it's safer to harass rich women than motorcycle gangs.

                                Comment

                                • RedShoe
                                  赤い靴 call me 202-456-1111
                                  • Feb 2001
                                  • 14831

                                  #17
                                  Mistress, be sure and contact your sponsor to see if they allow that. Sometimes they won't, so you might just want to check and make sure if it's ok to link them to your 404 redirect.

                                  ------------------
                                  ...:::End Of Line:::...
                                  ------------------
                                  * uSexFan.com
                                  * ICQ : 114683191

                                  SPECIALTY COSTUMES • PROPS • FX
                                  Superheroes • Monsters • Robots
                                  PM for details


                                  For any manufacturing needs. Adult or otherwise.

                                  aka BonsHigh on Insta
                                  Bonsai weed plants


                                  Comment

                                  Working...