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)
-   -   Would this htaccess work ? (https://gfy.com/showthread.php?t=71435)

X37375787 08-08-2002 11:52 PM

Would this htaccess work ?
 
I am trying to block both pic hotlinking and do cookie-based movie linking protection. Would this work or mess up, or do I even need the additional pic protection when using cookies ?

Quote:

ErrorDocument 400 http://www.domain.com/404.html
ErrorDocument 401 http://www.domain.com/404.html
ErrorDocument 403 http://www.domain.com/404.html
ErrorDocument 404 http://www.domain.com/404.html
ErrorDocument 410 http://www.domain.com/404.html
ErrorDocument 500 http://www.domain.com/404.html

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://domain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xxx.xxx.xxx.xxx.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xxx.xxx.xxx.xxx.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.domain.com
RewriteCond %{HTTP_COOKIE} !^.*access=granted.*$
RewriteRule .*$ http://www.yourdomain.com/404.html

Theo 08-08-2002 11:52 PM

which idiot gave you this code?

X37375787 08-08-2002 11:55 PM

Quote:

Originally posted by Soul_Rebel
which idiot gave you this code?

You did :smokin

Theo 08-09-2002 12:01 AM

ok,looks fine to me :D

dnsmonster 08-09-2002 12:49 AM

Actually ErrorDocument directives should point to the document on the same server as the rest of the pages. You can redirect to other sites from there. While your setup works fine in IE it will have problems with proxies, WebTV and other crap.

Brujah 08-09-2002 01:09 AM

http://www.xcite.net has some htaccess tools and a free blackbox code that might be useful to you.


All times are GMT -7. The time now is 04:01 AM.

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