Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 11-20-2003, 07:11 PM   #1
djmick
Registered User
 
Join Date: Apr 2003
Location: UK
Posts: 54
hotlinking problem using .htaccess - help needed please

simple problem, some advice on how to solve this would be much appreciated.

below is the code on my file

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://mysite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://secondsite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.secondsite.com/.*$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

Hotlink prevention is working but when accessing the main page on both sites all the images are missing.

e.g.

http://mysite.com/ - OK
http://mysite.com - fucked
http://www.mysite.com/ - OK
http://www.mysite.com - fucked

Just when the trailing slash isn't there it's fucked.

Any suggestions?

Thanks

djmick
djmick is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 11-21-2003, 05:55 PM   #2
djmick
Registered User
 
Join Date: Apr 2003
Location: UK
Posts: 54
where r all the tech gurus out there?

somebody must have a solution for me!!!!!!!

djmick
djmick is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 11-21-2003, 08:42 PM   #3
ppk
Confirmed User
 
Join Date: Dec 2002
Location: Near a computer
Posts: 214
RewriteCond %{HTTP_REFERER} !^http://www.url.one [NC]
RewriteCond %{HTTP_REFERER} !^http://www.url.two [NC]

get rid of the trailing slash
ppk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.