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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-01-2005, 08:47 AM   #1
A C
Confirmed User
 
Join Date: Dec 2002
Location: Im here, and there
Posts: 1,637
Htaccess question, help me out hehe

I know there is an htaccess code to redirect hotlinkers to the url of your choice, Ive been reading tutorials on them, and (call me dumb) I cant get the f'ing thing to work.

Please anyone who knows this code please let me know...
I just need the following

If users are requesting from goodurl.com/subdirectory then do shit
if they are requesting from anywhere else
redirect them to here

lol thanks

AC
A C is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-01-2005, 08:55 AM   #2
Kron
Confirmed User
 
Kron's Avatar
 
Join Date: Jan 2005
Posts: 1,668
I am also intrested for this,ent help is welcome
__________________
I dont exchange money!
Kron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-01-2005, 08:57 AM   #3
psyko514
See sig. Join Epic Cash.
 
Join Date: Oct 2002
Location: Montreal, Quebec. ICQ: 214702014
Posts: 22,366
Something like this would work:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.yourdomain.com/hotlink.jpg [R,NC]

Basically, if any domain other than yours attempts to display an image, it'll be replaced with hotlink.jpg (which can be a ******* pic, for example).
__________________

Bad Girl Bucks
- 50% Revshare through CCBill.
Promote BrandyDDD, Pixie's Pillows, Action Allie and more!

Phoenix Forum Pics | Webmaster Access Montreal pics
email: psyko514(a)gmail.com | icq: 214-702-014
psyko514 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-01-2005, 09:04 AM   #4
Kron
Confirmed User
 
Kron's Avatar
 
Join Date: Jan 2005
Posts: 1,668
That is so qick
Thanx psyko514
__________________
I dont exchange money!
Kron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-01-2005, 11:14 AM   #5
A C
Confirmed User
 
Join Date: Dec 2002
Location: Im here, and there
Posts: 1,637
Quote:
Originally Posted by psyko514
Something like this would work:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.yourdomain.com/hotlink.jpg [R,NC]

Basically, if any domain other than yours attempts to display an image, it'll be replaced with hotlink.jpg (which can be a ******* pic, for example).

need it to redirect the persons page to page.html not jsut change the image ;)

AC
A C is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-02-2005, 11:18 AM   #6
A C
Confirmed User
 
Join Date: Dec 2002
Location: Im here, and there
Posts: 1,637
bump it up
A C is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-02-2005, 12:04 PM   #7
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
REMEMBER !!!!!!!!!!!!!!!!!!!!!!!!!!

When you are uploading an .htaccess file, it must be done in Ascii mode.

;)
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-02-2005, 12:28 PM   #8
digifan
The Profiler
 
digifan's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: ICQ 76281726 and I'm female
Posts: 14,618
Quote:
Originally Posted by Antonio
REMEMBER !!!!!!!!!!!!!!!!!!!!!!!!!!

When you are uploading an .htaccess file, it must be done in Ascii mode.

;)

__________________
[email protected]
Webair Rocks
digifan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-02-2005, 12:42 PM   #9
The Sultan Of Smut
Confirmed User
 
The Sultan Of Smut's Avatar
 
Join Date: Dec 2004
Location: Vancouver
Posts: 4,325
Quote:
Originally Posted by psyko514
Something like this would work:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.yourdomain.com/hotlink.jpg [R,NC]

Basically, if any domain other than yours attempts to display an image, it'll be replaced with hotlink.jpg (which can be a ******* pic, for example).
I would add a line for the ip address of your server, it's not essential but I do it anyway:

RewriteCond %{HTTP_REFERER} !^http://32.332.332.32.*$ [NC]
The Sultan Of Smut is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-02-2005, 03:28 PM   #10
psyko514
See sig. Join Epic Cash.
 
Join Date: Oct 2002
Location: Montreal, Quebec. ICQ: 214702014
Posts: 22,366
Quote:
Originally Posted by A C
need it to redirect the persons page to page.html not jsut change the image ;)

AC

I'm not sure that's possible.
__________________

Bad Girl Bucks
- 50% Revshare through CCBill.
Promote BrandyDDD, Pixie's Pillows, Action Allie and more!

Phoenix Forum Pics | Webmaster Access Montreal pics
email: psyko514(a)gmail.com | icq: 214-702-014
psyko514 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-02-2005, 03:34 PM   #11
MikeXAMO
Confirmed User
 
Join Date: Mar 2002
Location: Trailer Park
Posts: 660
You cant have hotlinkers redirected to a web page. They are requesting an image, they must get an image back or the web browser will not know how to interperet it, and give back a broken image link.

What we used to do on our freehost is replace the image with a "Hotlinking disabled" image with a nasty assed image that people dont want to look at.
__________________
Xamo Entertainment
Xamo.com | EZSets.com

ICQ: 9439118 MSN: mikeb [at] xamo.com Tollfree: 800-544-XAMO
XXX CMS - Designed by Adult Webmasters, for Adult Webmasters.
MikeXAMO is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-02-2005, 04:10 PM   #12
The Sultan Of Smut
Confirmed User
 
The Sultan Of Smut's Avatar
 
Join Date: Dec 2004
Location: Vancouver
Posts: 4,325
Quote:
Originally Posted by MikeXAMO
You cant have hotlinkers redirected to a web page. They are requesting an image, they must get an image back or the web browser will not know how to interperet it, and give back a broken image link.

What we used to do on our freehost is replace the image with a "Hotlinking disabled" image with a nasty assed image that people dont want to look at.
I replace it with a 1k gif with my domain name. Why not get some free advertising?
The Sultan Of Smut is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-02-2005, 04:33 PM   #13
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
replace the hotlinked image with a 3 mil by 3 mil pixels /ok may be a bit smaller ;)/ WHITE jpg or gif. The image's size is tiny and it'll cost you next to nothing in bandwith but it'll slow the hotlinking fucker's page to a crawl ;)
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-02-2005, 05:20 PM   #14
Alexander D Great
Confirmed User
 
Join Date: Dec 2004
Posts: 330
google it
__________________
[email protected]
Alexander D Great is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



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.