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)
-   -   What si wrong with this .htaccess? (https://gfy.com/showthread.php?t=90719)

Darren 11-27-2002 01:40 PM

What si wrong with this .htaccess?
 
Does not seem to be working? The 404/403 errors work but you can still hotlink for some reason. Also is there anything missing from it?

ErrorDocument 403 http://www.penis-health.com/404.html
ErrorDocument 404 http://www.penis-health.com/404.html


RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://penis-health.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.penis-health.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://penis-health.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.penis-health.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://66.181.161.10.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://66.181.161.10:80.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.penis-health.com/hotlink.html

Naughty 11-27-2002 02:33 PM

This is a working version .. change urls to your own needs

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*naughtycelebs.co.uk*/ [NC]
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*sexypicsandmovies.com*/ [NC]
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*xnaughty.com*/ [NC]
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*naughtysexpics.com*/ [NC]
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*tgp2gallerypool.com*/ [NC]
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*157.238.201.172*/ [NC]
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*66.230.134.226*/ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.megageil.nl/hotlinked351x60.gif [L,R]

LUCL0NELY 11-27-2002 02:34 PM

redirect all your traffic to my sites.

Kat - Fast 11-27-2002 03:18 PM

I think it might be the letter 'o' not being capital

RewriteEngine on

PeekHoles 11-27-2002 03:22 PM

Hey Naughty or any htaccess guru

I need the htaccess code to do this... say I have 3 sites A, B , C In order to get to site C you have to either come from site A, or site B. I don't wont some to be able to type site C in directly and be able to get there. I have searched the board I know I have seen the code posted some were.


Gman.357 sent me this code. It does the job far as only letting the two other sites in only. But it wont all me to see the images just the html.

Here was the could I used that let the two sites in bit cant view any pics.

AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On

RewriteCond %{HTTP_REFERER} !^http://www.site-a.com/.* [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site-b.com/.* [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site-c.com/.* [NC]


RewriteRule /* http://www.yoursite.com/error.html [R,L]


Anyone know why this code doesn't allow me to see any pics?

Darren 11-28-2002 03:20 AM

bump i need that answer to

justsexxx 11-28-2002 03:26 AM

AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.site1.nl [NC]
RewriteCond %{HTTP_REFERER} !^http://site1.nl [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site2.nl/ [NC]
RewriteCond %{HTTP_REFERER} !^http://site2.nl/ [NC]
RewriteRule /* http://backtowhereyoucamfrom.nl [R,L]


This should work

edit: Let m eknow if it did work :-)

Seb From Holland 11-28-2002 04:34 AM

For all .htaccess no-no's, this simply step by step fill in form will help you out just fine!

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

Seb.


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

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