![]() |
Blocking hotlinking only from specific domains...
What code should I use if I wanblock hotlinking only from a couple of specific domains, and allow hotlinking from all the rest?
Thanks :thumbsup |
google.
|
Quote:
|
just use "deny" in your .htaccess file...
|
Quote:
|
The most common scenario is where you want everyone except a few visitors to be able to get to your site. Your .htaccess file would start like this:
order allow,deny allow from all Then you follow that with lines to specify the addresses that you want to block: deny from 192.168.128.14 deny from 192.168.128. deny from somehost.example.com deny from .example.com Leaving to p/u gf ... but it is very easy. Use notepad to make the file called .htaccess ( note the . before the name ). Put the file in the folder that you want to protect. :winkwink: |
Quote:
would be better though if you could just copy a code from your site that does that and send me via icq: 162136565 if you can... I don't know anything about htacces, so I better just get such code and copy it someone must have it... |
anyone got such code?
I'd really appreciate it |
Quote:
open notepad hahahaha=> type the following, changing the domain and/or the IP's to block hahahaha=> --- start ----- order allow,deny allow from all deny from 192.168.128.14 deny from 192.168.128. deny from somehost.example.com deny from .example.com ---- end ---- - Save it as a text file. It will be like htaccess.txt . - Upload it to the folder ( the one you want to protect and all under it ) in your server . - rename it .htaccess ( note no more extension text ). for more help : http://baremetal.com/gadgets/htaccess/access.html http://www.webpimps.com/scripts/htaccess/ http://www.htmlbasix.com/disablehotlinking.shtml and as stated above " google ' Good luck... I'm out of here |
Quote:
I'll test it later to see if it works... |
All times are GMT -7. The time now is 05:12 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123