News:

LVCS.NET offers low cost domain registration services.

Main Menu

htaccess problems

Started by pixie, January 23, 2006, 04:42:34 PM

Previous topic - Next topic

pixie

Hello, I've been having trouble with my .htaccess file the last few days.  Before my graphics would show up at forums that I designated fine.  Now, they do not, esp. on yourdollz.net and rainbowtears.net.  Both of these domains have two different forums using each domain.  I don't think that's the problem, since my graphics will not show at mysticnorthernlights.com either.  They show at all the other spots.  On these places, they show a red x, but if you right click and show view image, then they show up.  Please help me!  Here's my code.  I don't know much, I have just been adding to a code someone gave me.

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdollz.net/(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?64.193.110.130/pixie(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?sheezyart.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?shiftreload.com.au(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?thegoldenveil.mazzysdolls.com/(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?themuffin.org/(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?fairykiss.net/enchantedutopia/(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?greatestjournal.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?profile.myspace.com/?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?myspace.com/?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?blog.myspace.com/?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?gallery.greatestjournal.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?freepgs.com/pixie(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?eden-enchanted.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yumeweb.com/dollzine(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysticnorthernlights.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?theunder-ground.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?www3.topsites24.de/pro/Sechmet(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?fracturedfairytales.net(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?s13.invisionfree.com/GHF_and_Camelot(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?webpages.charter.net/richolford(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?christmasforall.proboards21.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?xanga.com/pixiewildflower(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?system.freepgs.com/forum(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?livejournal.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?deviantart.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?pixie-wildflower.deviantart.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?xanga.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?faeforum.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?pixie.50webs.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?plug-board.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?sapphyredreamz.50webs.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?toplist.myprettypixels.net(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?usa.ultimatetopsites.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?rainbowtears.net(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?pixiewildflower.livejournal.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?feyrealm.com(/)?.*$     [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ - [F,NC]

sixthcrusifix

You already let SO many places link to your images I suggest you just give up trying to block people with .htaccess.  I can't make heads or tales of it thoughm I don't know much about it.
Visite me website at http://www.sixthcrusifix.com

pixie

#2
Those are just forums that friends run, so I trust them to not hotlink me.  I don't want the general public to though.  What's weird is that everything worked fine up until this past week. :o

admin

Be sure the page is not being redirected elsewhere.  (If so, the referer will list this address and not the one you typed)

Otherwise, be sure your browser is sending the HTTP_REFERER header when it attempts to fetch these graphics.

Are others having trouble seeing your graphics on these sites?

Thank you,
FreePgs.com Admin

pixie

#4
Quote from: admin on January 26, 2006, 08:52:56 PM
Be sure the page is not being redirected elsewhere.  (If so, the referer will list this address and not the one you typed)

Otherwise, be sure your browser is sending the HTTP_REFERER header when it attempts to fetch these graphics.

Are others having trouble seeing your graphics on these sites?

Thank you,
FreePgs.com Admin

Yes, no one can see them.  Funny thing, I deleted my .htaccess file temporarily and went back to the sites.  I still couldn't see my graphics, so it must be something else, any ideas?  It is only at the mysticnorthernlights.com, yourdollz.net and rainbowtears.net forums.  The graphics show up everywhere else whether or not my .htaccess file is installed.

Edit:  Also on my live journal.  I can see my graphics fine, but when I go to a friend's journal and look at my entry through their friends page, I can't see it, so isn't having livejournal.com enough to let all users see my graphics?

Everyone's journal is listed as their username.livejournal.com

Please don't tell me I have to list every one of my friends separately on my .htaccess file.  I will croak if that's the case.  Rippit!

webzone (archived)

The broken image is probablty cached by your browser, because deleting .htaccess should not cause an unconsistent behavior. When doing such verifications, it is very important to clear your cache between the series of tests.

To clear your cache :
In IE : Tools > Options > General > Delete files...
In Firefox : Tools > Options > Privacy > Cache > Clear

pixie

Actually, clearing it was the first thing I did after deleting the file.  Really odd, I still haven't figured it out and why it just happens at certain forums.  I don't think they are redirecting because I have spoofstick and I just have to look up at it to see what the true current address is.  I guess it's just one of those werid things.  Does anyone have an answer about my live journal dilemma?  Will using *.livejournal.com cover all users?

GP™

I haven't testest this, therefore I don't know if it works.
I changed all the www\.  to   *\.  which is a wildcard, therefore
your not limiting it to the www. subdomain

Also, I changed your endings from: /(/)?.*$
To: /.*$

Not sure if it makes a dif, but thats how I have always done it and I diden't understand your method!

Please post and let me know if this works!

Also, If you you notice, I changed it where when someone attempts to remote access your image it displays a nice "Prohibited" image instead... LOL... I love
doing that, It really pisses them off, ROTF...



RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(*\.)?freepgs.com/.*$    [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?yourdollz.net/.*$    [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?64.193.110.130/pixie/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?sheezyart.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?shiftreload.com.au/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?thegoldenveil.mazzysdolls.com/.*$    [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?themuffin.org/.*$    [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?fairykiss.net/enchantedutopia/.*$    [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?greatestjournal.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?profile.myspace.com/?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?myspace.com/?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?blog.myspace.com/?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?gallery.greatestjournal.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?freepgs.com/pixie/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?eden-enchanted.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?yumeweb.com/dollzine/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?mysticnorthernlights.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?theunder-ground.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?www3.topsites24.de/pro/Sechmet/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?fracturedfairytales.net/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?s13.invisionfree.com/GHF_and_Camelot/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?webpages.charter.net/richolford/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?christmasforall.proboards21.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?xanga.com/pixiewildflower/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?system.freepgs.com/forum/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?livejournal.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?deviantart.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?pixie-wildflower.deviantart.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?xanga.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?faeforum.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?pixie.50webs.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?plug-board.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?sapphyredreamz.50webs.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?toplist.myprettypixels.net/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?usa.ultimatetopsites.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?rainbowtears.net/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?pixiewildflower.livejournal.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?feyrealm.com/.*$     [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ - [F,NC]
RewriteRule \.(gif|jpg|jpeg|bmp|png)$ http://services.freepgs.com/prohib.png [R,L]

pixie

Thank you Gordon.  You rock.  I'll go install this right now!  I so love the support you guys offer!

pixie

Aw, I am sorry to say that the wildcard didn't work in LJ. :-\  I guess I'll have to use another image host when I post there until someone comes up with another idea.  On the bright side, my images are showing in all my forums now.

GP™

Try this:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(*\.)?freepgs.com/.*$    [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?yourdollz.net/.*$    [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?64.193.110.130/pixie/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?sheezyart.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?shiftreload.com.au/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?thegoldenveil.mazzysdolls.com/.*$    [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?themuffin.org/.*$    [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?fairykiss.net/enchantedutopia/.*$    [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?greatestjournal.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?profile.myspace.com/?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?myspace.com/?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?blog.myspace.com/?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?gallery.greatestjournal.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?freepgs.com/pixie/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?eden-enchanted.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?yumeweb.com/dollzine/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?mysticnorthernlights.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?theunder-ground.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?www3.topsites24.de/pro/Sechmet/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?fracturedfairytales.net/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?s13.invisionfree.com/GHF_and_Camelot/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?webpages.charter.net/richolford/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?christmasforall.proboards21.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?xanga.com/pixiewildflower/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?system.freepgs.com/forum/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?livejournal.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?deviantart.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?pixie-wildflower.deviantart.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?xanga.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?faeforum.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?pixie.50webs.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?plug-board.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?sapphyredreamz.50webs.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?toplist.myprettypixels.net/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?usa.ultimatetopsites.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?rainbowtears.net/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?pixiewildflower.livejournal.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(*\.)?feyrealm.com/.*$     [NC]
RewriteRule \.(gif|jpg|jpeg|bmp|png)$ http://services.freepgs.com/prohib.png [R,L]


I added one to many lines, if that don't work, I don't know what to tell you!

lotsofish

This might work, but I didn't test it.

RewriteCond %{HTTP_REFERER} !^[.]*[freepgs.com][.]?$    [NC]
RewriteCond %{HTTP_REFERER} !^[.]*[yourdollz.net][.]?$    [NC]

etc.


webzone (archived)

QuoteThis might work, but I didn't test it.

RewriteCond %{HTTP_REFERER} !^[.]*[freepgs.com][.]?$    [NC]
RewriteCond %{HTTP_REFERER} !^[.]*[yourdollz.net][.]?$    [NC]

etc.

You simplified the rules too much, so there are problems with your suggestion. Hosts like testfreepgs.com or freepgs.com.blogger.com would work while they shouldn't.

gordon's method is the probably simplest way to handle the situation.