![]() |
Need a .htaccess expert for this one please?
I thought I had my .htaccess set up ok and most sites that need blocking are blocked but as many of my sites are Asian content I seem to be a constant target.
Anyway there are a few url's that I can't seem to block and I've no doubt it's an error on my .htaccess. The ones getting through include: http://www.aladding.com/ http://www.xiaosese.com/ http://photo.aisex.com/ http://xiaosese.com/ http://209.120.238.36/ http://www.xiaosese.net/ http://www.beyond8.com/ http://www.atv8.com/ http://aladding.com/ http://www.919120.com/ http://127.0.0.1-6-fg/ http://atv8.com/ My current .htaccess looks like this: RewriteEngine on RewriteOptions inherit RewriteCond %{HTTP_REFERER} ^.*a4ybbs.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^.*ourvenus.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^.*aladding.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^.*xiaosese.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^.*aisex.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^.*beyond8.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^.*atv8.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^.*919120.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^.*hostflofree.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^.*websamba.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^.*111-222.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^.*hylover.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^.*nudeangel.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^.*nudeangelbbs.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^.*amandalist.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^.*chatropolis.*$ [NC] RewriteRule /* http://www.a-world-of-sex.com/ex/ [R,L] ErrorDocument 404 http://www.a-world-of-sex.com/ex/ Can anybody suggest what's wrong with it and why the above domain names are still able to hotlink? Cheers in advance Lux |
|
how would a simple .htaccess look if you want to only let certain domains hotlink your pics and movies and all others to go to a redirect?
|
maybe this can help you out:
http://www.htaccesstools.com/block-hitbots/ |
Have in mind that by redirecting all hotlink traffic to that page you will use up more bandwidth than just the single picture they are hotlinking.
The page you redirect to is 367kB including all pictures. So it's just to calculate what the total bw used is if they hotlink 10, 50 or 100 pics. It adds up. If bandwidth is a concern, use this RewriteRule instead: RewriteRule .* - [F] |
Thanks for all the suggestions guys but they're still sneakng through :(
Lux |
RewriteRule .* - [F]
what does this do? |
Quote:
On your second point would you care to expand a bit as I'm not really too hot on .htaccess |waves| Thanks again for your intelligent response. Lux |
Quote:
http://www.htaccesstools.com/block-hitbots/ allows you to block or redirect the hitbots or what ever it is. If you do not set a "Redirection URL" hits will just be blocked. |
Quote:
I tried that tool and generated a .htaccess file but still some of the sites seem to be able to access my sites. Lux |
Quote:
I just added a new tool, Block IPs. Use this if you want to block based on ip instead of http referer. http://www.htaccesstools.com/block-ips/ |
Try a
deny from (numeric iaddress) |
Quote:
I'm still having trouble combining 2 .htaccess files into one.. I need hotlink protection and hitbot blocking all in one.. When I put all the code into one .htaccess I mess everything up! :( |
Are you clearing your cache prior to checking if they can hotlink?
|
What I do on my sites is just .htaccess allow certain sites to hotlink and disallow ALL others
|
Quote:
Good luck! cheers, Luke |
Quote:
Nice idea Luke thanks! I'd looked at the sites but didnt thnk about looking at the code. I'll give it a go. Lux |
Quote:
Feel free to post your htaccess questions on http://www.htaccesstools.com/board/ |
have you sorted out the problem yet?
blocking each site that is hotlinking you is NOT the way to do it you need a htacess file that allows traffic from YOUR domain(s) and blocks EVERYONE else from hotlinking you let me know if you need a hand we will have it sorted real qwik for ya :) |
Quote:
|
Quote:
this sounds just awesome... wondering if asking a badly needed helping hand is fine with you? tia, digifan |cool| |
All times are GMT -4. The time now is 11:29 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc