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)
-   -   Blocking hotlinking only from specific domains... (https://gfy.com/showthread.php?t=340620)

alexg 08-13-2004 03:20 PM

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

Lace 08-13-2004 03:30 PM

google.

sixxxth_sense 08-13-2004 03:32 PM

Quote:

Originally posted by BMI Lace
google.
stupid! :1orglaugh

directfiesta 08-13-2004 03:43 PM

just use "deny" in your .htaccess file...

alexg 08-13-2004 03:54 PM

Quote:

Originally posted by directfiesta
just use "deny" in your .htaccess file...
can you give me an example?

directfiesta 08-13-2004 03:57 PM

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:

alexg 08-13-2004 04:08 PM

Quote:

Originally posted by directfiesta
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:

thanks for the help :thumbsup
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...

alexg 08-13-2004 04:25 PM

anyone got such code?
I'd really appreciate it

directfiesta 08-13-2004 04:30 PM

Quote:

Originally posted by alexg
thanks for the help :thumbsup
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...

LOL .... I don't use ICQ... I have a number, but that was beyond me ...

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

alexg 08-13-2004 04:33 PM

Quote:

Originally posted by directfiesta
LOL .... I don't use ICQ... I have a number, but that was beyond me ...

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

thanks bro :thumbsup

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