Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 27

Thread: is there something you can do with .htaccess or something else to stop..........

  1. #1
    Is there something you can do with .htaccess or other form of script that makes it that other site can't link to your images and downloads like geocities and other major free web host has done?

  2. #2
    Rebutted, enshrined meow is an unknown quantity at this point meow's Avatar
    Join Date
    Feb 2001
    Location
    FP Crematory
    Posts
    8,658

  3. #3
    in both of them it states that you put in the ip address of your site, what if your site is on free web space whats the ip then? Or if not what do you do?

  4. #4
    Rebutted, enshrined meow is an unknown quantity at this point meow's Avatar
    Join Date
    Feb 2001
    Location
    FP Crematory
    Posts
    8,658
    Oops. I don't think you need the IP. I know I have got it to work. Check this variant:
    http://webnests.com/bandwidththeft.htm

    Or go to http://www.cgi-resources.com/ or some other CGI directory and search for "bandwidth" and you'll find a bunch of scripts.

    Sorry, I don't find the .htaccess I used. But I definitely didn't have my own IP.

  5. #5
    Originally posted by meow
    Oops. I don't think you need the IP. I know I have got it to work. Check this variant:
    http://webnests.com/bandwidththeft.htm

    Or go to http://www.cgi-resources.com/ or some other CGI directory and search for "bandwidth" and you'll find a bunch of scripts.

    Sorry, I don't find the .htaccess I used. But I definitely didn't have my own IP.
    On the first link it shows:
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
    RewriteRule .*\.gif$ - [F]

    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
    RewriteRule .*\.jpg$ - [F]
    Do you think it will still work if the files are zip and other format besides jpg and gif?

  6. #6
    Damn I tried that thing now my site don't even work at all, might just be my browser so can you guys check? its at http://www.otashki----------

  7. #7
    Rebutted, enshrined meow is an unknown quantity at this point meow's Avatar
    Join Date
    Feb 2001
    Location
    FP Crematory
    Posts
    8,658
    Sh*t! IE just connects, connects, connects...
    Where do you have the site? You can get in with ftp I hope?

  8. #8
    I have it at hypermart and yes I can access the ftp, the OTHER address is otashki.hypermart.net

  9. #9
    Rebutted, enshrined meow is an unknown quantity at this point meow's Avatar
    Join Date
    Feb 2001
    Location
    FP Crematory
    Posts
    8,658
    Have you tried to delete the .htaccess file?
    Boy, I feel like this is my fault.

  10. #10
    Rebutted, enshrined meow is an unknown quantity at this point meow's Avatar
    Join Date
    Feb 2001
    Location
    FP Crematory
    Posts
    8,658
    Hey Weapon, can you see the .htaccess file with ftp? If not, do you know how to get rid of it? *worried* - no smilie for that

  11. #11
    nothing to worry about, I can still edit, delete and do all the other stuff with the .htaccess ,but I just can't get it to work. Is there like something special you have to do? put it in a certain dir? or anything else i need to know

  12. #12
    Rebutted, enshrined meow is an unknown quantity at this point meow's Avatar
    Join Date
    Feb 2001
    Location
    FP Crematory
    Posts
    8,658
    Thank heavens.
    Normally a .htaccess files affects the directory in which it is contained and those below that one in the structure. Like for password protection you dump it in the directory you want to protect. So I guess in this case the root would be a good place.

    Maybe the server doesn't allow this kind of fun and that's why it screws up. Or have you managed to make your whole site protected?

  13. #13
    I did try some variations and the site works, but then the pictures don't show up

  14. #14
    I got a variation which looks something like this:

    <FilesMatch "\.(gif|jpg)">
    allow from otashki.hypermart.net
    </FilesMatch>

    yet it still don't work any suggestions?

  15. #15
    Rebutted, enshrined meow is an unknown quantity at this point meow's Avatar
    Join Date
    Feb 2001
    Location
    FP Crematory
    Posts
    8,658
    I tried this on f2s:

    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !>http://www.blah.f2s.com [NC]
    RewriteRule /* http://www.blah.f2s.com/bad.html [R,L]

    Same result as you. Can't link to the images, but they don't show up on my page either.
    If I find the old one I used I'll post it. Think it was on myscgiserver. Guess you have to settle for a CGI.


Closed Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts