|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Nov 2002
Location: rain city
Posts: 222
|
htaccess question
htaccess question:
Is this the proper format for blocking hotlinking by domain? sogclub being the domain that is hotlinking xxx being my (i wish) hehe domain RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(www\.)?sogclub.com(/)?.*$ [NC] RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://xxx.com/ [R,NC] Also, can you insert ip in place of domain name with this format? Thanks ex: RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(www\.)?65.125.235.178.com(/)?.*$ [NC] RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://xxx.com/ [R,NC]
__________________
345682839 |
|
|
|
|
|
#2 |
|
Too lazy to set a custom title
Industry Role:
Join Date: Oct 2002
Location: Punta Cana, DR
Posts: 30,033
|
why not use the " deny" function in the httpd.conf file , since it is only for one specific domain.
__________________
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 .... |
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Nov 2002
Location: rain city
Posts: 222
|
Actually i'm getting hotlinked by several but they only show up in the ref log by ip
__________________
345682839 |
|
|
|
|
|
#4 | |
|
Confirmed User
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
|
Quote:
<B>RewriteCond %{HTTP_REFERER} !^http://65.125.235.178[NC, OR] RewriteCond %{HTTP_REFERER} !^http://(www\.)?sogclub.com[NC] RewriteRule \.(gif|jpg|jpeg|bmp)$ http://xxx.com/ [R,NC]</B>
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A> <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER> |
|
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
|
Oh, and the target address in the rewriterule need not and really shouldn't contain "http://" and [R], unless you are redirecting to a different server. So, if you're just sending them to the top of your site, write that line as:
<B>RewriteRule \.(gif|jpg|jpeg|bmp)$ / [NC]</B>
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A> <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER> |
|
|
|
|
|
#6 | |
|
Confirmed User
Join Date: Nov 2002
Location: rain city
Posts: 222
|
Quote:
Ok.. Thanks.. I'll try it out
__________________
345682839 |
|
|
|
|
|
|
#7 | |
|
So Fucking Banned
Join Date: Mar 2003
Location: 420Calendar.com
Posts: 17,920
|
Quote:
|
|
|
|
|
|
|
#8 |
|
Confirmed User
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
|
Oops, glad you bumped this, I overlooked that you're going about this back-assedwards! Me bad!
THIS is what you want (No"<B>!</B>'s"): <B>RewriteCond %{HTTP_REFERER} ^http://65.125.235.178[NC, OR] RewriteCond %{HTTP_REFERER} ^http://(www\.)?sogclub.com[NC] RewriteRule \.(gif|jpg|jpeg|bmp)$ / [NC]</B> Sorry I didn't catch that first time around....
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A> <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER> |
|
|
|
|
|
#9 |
|
Confirmed User
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
|
(bumping to make sure <B>save11</B> notices that last change. Otherwise, the only people able to view his images will be the hotlinkers!)
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A> <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER> |
|
|
|
|
|
#10 |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
__________________
HEY!! Unbeatable hosting! Customer service is top notch! --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!! |
|
|
|
|
|
#11 |
|
Too lazy to set a custom title
Join Date: Jun 2003
Location: Ottawa
Posts: 19,634
|
i got a little htaccess question of my own.
what do i need to add to my htaccess file for a HTTP 301 moved page? |
|
|
|
|
|
#12 | |
|
Confirmed User
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
|
Quote:
<B>Redirect permanent /old-missing-page-1.html http://www.your-url.com/new-replacement-page-1.html Redirect permanent /old-missing-page-2.html http://www.your-url.com/new-replacement-page-2.html </B>
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A> <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER> |
|
|
|
|
|
|
#13 | |
|
Too lazy to set a custom title
Join Date: Jun 2003
Location: Ottawa
Posts: 19,634
|
Quote:
|
|
|
|
|
|
|
#14 |
|
Confirmed User
Join Date: Aug 2002
Location: Atlanta
Posts: 936
|
Or, to prevent ANYONE from linking to your images...
RewriteEngine on RewriteOptions inherit RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://.*YOURDOMAIN/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://.*YOURDOMAIN:80/.*$ [NC] RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://SOMEURL Be sure to replace YOURDOMAIN with your actual domain name, and replace SOMEURL with the URL that you want the surfer to go to should they actually click on the red X on the hot linkers site!
__________________
National Net Hosting. Handled. See our new line of inexpensive Dedicated Servers | Cabinets starting at $795 | CDN [email protected] | 888-4-NATNET | www.nationalnet.com |
|
|
|
|
|
#15 | |
|
Confirmed User
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
|
Quote:
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A> <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER> |
|
|
|
|