Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-13-2004, 03:20 PM   #1
alexg
IL4L.com
 
Join Date: Aug 2003
Location: Israel - ICQ: 162136565
Posts: 11,287
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
alexg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-13-2004, 03:30 PM   #2
Lace
Too lazy to set a custom title
 
Lace's Avatar
 
Industry Role:
Join Date: Mar 2004
Posts: 16,116
google.
__________________
Your Paysite Partner
Strength In Numbers!
StickyDollars | RadicalCash | KennysPennies | HomegrownCash
Lace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-13-2004, 03:32 PM   #3
sixxxth_sense
So Fucking Banned
 
Join Date: Nov 2003
Location: T.O.
Posts: 2,430
Quote:
Originally posted by BMI Lace
google.
stupid!
sixxxth_sense is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-13-2004, 03:43 PM   #4
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,668
just use "deny" in your .htaccess file...
__________________
I know that Asspimple is stoopid ... As he says, it is a FACT !

But I can't figure out how he can breathe or type , at the same time ....
directfiesta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-13-2004, 03:54 PM   #5
alexg
IL4L.com
 
Join Date: Aug 2003
Location: Israel - ICQ: 162136565
Posts: 11,287
Quote:
Originally posted by directfiesta
just use "deny" in your .htaccess file...
can you give me an example?
alexg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-13-2004, 03:57 PM   #6
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,668
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.

__________________
I know that Asspimple is stoopid ... As he says, it is a FACT !

But I can't figure out how he can breathe or type , at the same time ....

Last edited by directfiesta; 08-13-2004 at 03:59 PM..
directfiesta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-13-2004, 04:08 PM   #7
alexg
IL4L.com
 
Join Date: Aug 2003
Location: Israel - ICQ: 162136565
Posts: 11,287
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.

thanks for the help
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-13-2004, 04:25 PM   #8
alexg
IL4L.com
 
Join Date: Aug 2003
Location: Israel - ICQ: 162136565
Posts: 11,287
anyone got such code?
I'd really appreciate it
alexg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-13-2004, 04:30 PM   #9
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,668
Quote:
Originally posted by alexg
thanks for the help
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
__________________
I know that Asspimple is stoopid ... As he says, it is a FACT !

But I can't figure out how he can breathe or type , at the same time ....
directfiesta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-13-2004, 04:33 PM   #10
alexg
IL4L.com
 
Join Date: Aug 2003
Location: Israel - ICQ: 162136565
Posts: 11,287
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

I'll test it later to see if it works...
alexg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.