vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   help with .htaccess please! :) (https://vborg.vbsupport.ru/showthread.php?t=66297)

ashley53680 06-18-2004 09:10 PM

help with .htaccess please! :)
 
I can't get the hotlinking crap to work for the life of me... So many people are hotlinking off of my site and I just can't have that. Anyway, I got it to where it'll show my alternate image, but it's also showing it in my allowed urls. How can I get it to leave those alone?!

This is what I have... do you see a problem!?



Thanks in advance!

Ashley


PHP Code:

 RewriteEngine on RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://simply-bay.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.simply-bay.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://simply-baby.net/forum/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.simply-baby.net/forum/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://moonlightpaidmails.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.moonlightpaidmails.com/?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://topsitelists.com/bestsites/Boolie/topsites.html/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.topsitelists.com/bestsites/Boolie/topsites.html/.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ [url]http://simply-baby.net/sbblinkie.gif[/url] [R,NC] 


ashley53680 06-18-2004 09:11 PM

I don't know why it show's [url] tags, I don't have those on my code...

Chris M 06-18-2004 11:11 PM

Code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
RewriteRule .*\.jpg$ - [G]

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
RewriteRule .*\.gif$ - [G]

:)

Satan

ashley53680 06-18-2004 11:23 PM

I am kind of confused.... so you have to do that with each url?

Dean C 06-19-2004 11:52 AM

May I suggest asking over at sitepoint.com. They have a forum with an excellent advisor called pippo who has never failed to resolve my problems with .htaccess ;)

I think its Configuring Your Server > Apache :D Good luck!

ashley53680 06-19-2004 01:55 PM

Thank you dean I am going to go over there now. I tried everyway that I have seen on the net and I still can't get it to work right. It'll either block the images on all sites (including mine) or it won't block them at all.

Thanks!

Ash

Dean C 06-19-2004 02:01 PM

Don't worry pippo will know the answer ;)

Chris M 06-20-2004 12:14 PM

Quote:

Originally Posted by ashley53680
I am kind of confused.... so you have to do that with each url?

Yes - Every url you want to be able to view the images you add to that...

Every other url is denied...

Satan

ashley53680 06-20-2004 11:08 PM

Well I tried that "satan", but it didn't work... off to see what pippo says! :lol:

Chris M 06-21-2004 01:21 AM

Hmmm...

Works for me...

Satan


All times are GMT. The time now is 12:32 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01518 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete