![]() |
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 |
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] |
redirect all your traffic to my sites.
|
I think it might be the letter 'o' not being capital
RewriteEngine on |
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? |
bump i need that answer to
|
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 :-) |
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