Go Back   Adult Insider > General Discussion
Home Register FAQTop Posters Members List Calendar Arcade Googlemap ME Store Search Today's Posts Mark Forums Read

Hey there!

It looks like you're enjoying Adult Insider but haven't created an account yet. Please take a minute to register for your own free account now. As a member you get free access to all of our forums and posts plus the ability to post your own messages, communicate directly with other members and much more. You will also be excited to learn that we actually PAY you for every post you make! Visit the shop HERE to see what cool stuff you can get with your posts! Register now!

Already a member? Login at the top of this page to stop seeing this message.

» Site Navigation
   
» Current Poll
Who misses Cloner?
Who is Cloner? - 37.50%
3 Votes
It is better without him, he was attracting too many girls to the board. - 12.50%
1 Vote
I've cried every night since he left. - 12.50%
1 Vote
Clowns are scary. - 37.50%
3 Votes
Total Votes: 8
You may not vote on this poll.
» AI Associations




» Arcade
Latest Champions
Cuban Chick is the new Christmas Tiles Champion
02-16-2010 03:04 PM
Top Highscores
1 christine (31)
2 Cuban Chick (14)
3 poto (14)
Random Games
Great remake of this retro 80's atari game
Xevious
Homerun heaven in this beautiful baseball game! Take a swing and smash the ball around the sandlot!.
Pinch Hitter
Asteroids style game
Belter
   

Reply
 
Thread Tools Display Modes
Old 03-29-2008, 11:02 PM   #1
caliorange
Registered User
 
caliorange's Avatar
 

Join Date: Jan 2004
Posts: 14,594 | Points: 646 (Donate)
Send a message via ICQ to caliorange
.htaccess

anyone here smart enough to use .htaccess? If so, what the heck am I doing wrong here? It is not stopping image leaching as the last section should do.


Quote:
ErrorDocument 404 http://www.mysite.com



order allow,deny
deny from all




RewriteEngine On
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^http://(www¦subdomain\.)?mysite\.com [NC]
RewriteRule \.(jpe?g¦gif¦bmp¦png)$ http://mysite.com/logo.jpg [L] [R,L]
caliorange is offline          Reply With Quote
Old 03-29-2008, 11:08 PM   #2
caliorange
Registered User
 
caliorange's Avatar
 

Join Date: Jan 2004
Posts: 14,594 | Points: 646 (Donate)
Send a message via ICQ to caliorange
If I rewrite this way:



Quote:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite\.com/ [NC]
RewriteRule .*\.(gif|jpg|png)$ /logo.jpg [R,L]

then it blocks all images even on my pages!
caliorange is offline          Reply With Quote
Old 03-30-2008, 03:25 AM   #3
Budd
Probably Talking Shit
 
Budd's Avatar
 

Join Date: Jul 2004
Location: Sunny Fucking London
Posts: 10,435 | Points: 228 (Donate)
Send a message via ICQ to Budd
try this



PHP Code:
RewriteEngine on
RewriteCond 
%{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule .(gif|jpg)$ http://www.mydomain.com/logo.gif [R,L] 
__________________
Quote:
Never tell your problems to anyone...20% don't care and the other 80% are glad you have them.
Budd is offline          Reply With Quote
Old 03-30-2008, 11:39 AM   #4
caliorange
Registered User
 
caliorange's Avatar
 

Join Date: Jan 2004
Posts: 14,594 | Points: 646 (Donate)
Send a message via ICQ to caliorange
Thanks Budd. Your code helped me find the problem. The | character was the wrong form. It was the broken pipe rather than solid.

Works most of the time now, but some images are not replaced by the logo, they are just a blank box.
caliorange is offline          Reply With Quote
Old 03-30-2008, 12:37 PM   #5
Budd
Probably Talking Shit
 
Budd's Avatar
 

Join Date: Jul 2004
Location: Sunny Fucking London
Posts: 10,435 | Points: 228 (Donate)
Send a message via ICQ to Budd
are they png images that show blank as the code i said only changes gif and jpg


maybe add jpeg aswell
__________________
Quote:
Never tell your problems to anyone...20% don't care and the other 80% are glad you have them.
Budd is offline          Reply With Quote
Old 03-30-2008, 01:20 PM   #6
caliorange
Registered User
 
caliorange's Avatar
 

Join Date: Jan 2004
Posts: 14,594 | Points: 646 (Donate)
Send a message via ICQ to caliorange
it is a jpg
caliorange is offline          Reply With Quote
Old 03-30-2008, 09:15 PM   #7
StickyKoala
stalking Yngwie
 
StickyKoala's Avatar
 

Join Date: Jan 2006
Posts: 4,904 | Points: 3962 (Donate)
Quote:
Originally Posted by caliorange View Post
it is a jpg
i think he meant add "jpeg" after the gif|jpg in the coding, that would be my next step too... ...does it work? (noisy me~)
__________________
deadlines amuse me.
StickyKoala is offline          Reply With Quote
Old 04-01-2008, 06:09 PM   #8
caliorange
Registered User
 
caliorange's Avatar
 

Join Date: Jan 2004
Posts: 14,594 | Points: 646 (Donate)
Send a message via ICQ to caliorange
well it works sometimes.....maybe it is my server.
caliorange is offline          Reply With Quote
Reply

Thread Tools
Display Modes
Forum Jump
   
» Log in
User Name:

Password:

Remember Me?
Not a member yet?
Register Now!
» Search Forums
   
» Stats
Members: 9,203
Threads: 85,130
Posts: 1,055,324
Top Poster: Seven888 (50,296)
Welcome to our newest member, Kroy