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)
-   -   I need some easy htaccess lines please (https://gfy.com/showthread.php?t=185820)

jovigirl 10-14-2003 03:15 AM

I need some easy htaccess lines please
 
Hi
I need to redirect traffic coming from certain domains like fusker.com, both clicked traffic and hotlinking images.
Any help appreciated - I couldnt get it to work properly.
:helpme

Thanks bros

RedBumper 10-14-2003 03:18 AM

http://www.htmlbasix.com/disablehotlinking.shtml

I use that htaccess code generator and it works fine

jovigirl 10-14-2003 03:38 AM

Yes I know that but it doesnt fit my needs now
I dont want to specify urls to allow to hotlink
but urls to DISallow to hotlink
And also I need to redirect clicked traffic when a surfer clicks a link on certain domains

AWS Venus 10-14-2003 03:51 AM

For the image hotlink, use this:

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

To redirect the traffic:

RewriteEngine On
RewriteCond %{HTTP_REFERER} http://www.fusker.com/ [OR]
RewriteCond %{HTTP_REFERER} http://www.hotlink.com/
RewriteRule /* http://www.yourdomain.com/fuckinghotlinker.html [R,L]

Add as many line as you want for HTTP_REFERER.

jovigirl 10-14-2003 04:15 AM

Thanks Venus :thumbsup


All times are GMT -7. The time now is 08:39 AM.

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