GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Htaccess question, help me out hehe (https://gfy.com/showthread.php?t=425339)

A C 02-01-2005 08:47 AM

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

Kron 02-01-2005 08:55 AM

I am also intrested for this,ent help is welcome

psyko514 02-01-2005 08:57 AM

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).

Kron 02-01-2005 09:04 AM

That is so qick
Thanx psyko514

A C 02-01-2005 11:14 AM

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 02-02-2005 11:18 AM

bump it up

Antonio 02-02-2005 12:04 PM

REMEMBER !!!!!!!!!!!!!!!!!!!!!!!!!!

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

;)

digifan 02-02-2005 12:28 PM

Quote:

Originally Posted by Antonio
REMEMBER !!!!!!!!!!!!!!!!!!!!!!!!!!

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

;)


:thumbsup

The Sultan Of Smut 02-02-2005 12:42 PM

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]

psyko514 02-02-2005 03:28 PM

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.

MikeXAMO 02-02-2005 03:34 PM

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.

The Sultan Of Smut 02-02-2005 04:10 PM

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?

Antonio 02-02-2005 04:33 PM

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 ;)

Alexander D Great 02-02-2005 05:20 PM

google it


All times are GMT -7. The time now is 03:45 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123