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 05-31-2001, 04:53 PM   #1
Web_Mistress
Confirmed User
 
Join Date: Feb 2001
Location: Las Vegas, NV
Posts: 374
.htaccess help

I've had my host try, and I've tried, and I can't get a .htaccess to work, darn it. I want something that will go to a 404 error page, and prevent hotlinking.

I tried this:

ErrorDocument 403 http://www.xxx-free-porn.net/404.html
ErrorDocument 404 http://www.xxx-free-porn.net/404.html
ErrorDocument 500 http://www.xxx-free-porn.net/404.html

AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.xxx-free-porn.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xxx-free-porn.net/.*$ [NC]
RewriteRule .*$ / [R]


And every page you type in just bounces right back to the main page. What am I doing wrong? I tried searching on a few boards, and I can't find the .htaccess tutorials.

Thanks alot.
Web_Mistress is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 05:01 PM   #2
ldinternet
Confirmed User
 
Join Date: Apr 2001
Posts: 8,245
Hi Web Mistress,

Create a blank page on your site called success.html and updload it to the root directory. On that page put the text "success!"

Replace your htaccess code with this

Code:
ErrorDocument 403 http://www.xxx-free-porn.net/success.html 
ErrorDocument 404 http://www.xxx-free-porn.net/success.html 
ErrorDocument 500 http://www.xxx-free-porn.net/success.html 

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://xxx-free-porn.net.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.xxx-free-porn.net.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.xxx-free-porn.net/success.html
Then type in something that doesn't exist - such as http://www.xxx-free-porn.net/wf9wef09m34f9m3/

If it bounces you to success.html then you've done it. You can change http://www.xxx-free-porn.net/success.html to anything you like, such as sponsor codes, cgi-bin/out.cgi (link trades), etc
ldinternet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 05:02 PM   #3
ldinternet
Confirmed User
 
Join Date: Apr 2001
Posts: 8,245
"I put the master in webmaster"

You'd better fucken believe it.
ldinternet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 05:08 PM   #4
RedShoe
赤い靴 call me 202-456-1111
 
RedShoe's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
You need to add this to the very bottom of your htaccess file

RewriteRule /* http://usexfan.com/[R,L]
Ok,ok, you can change the url

See, you don't have any place to send the surfer.
Or try these articles: http://www.theadultwebmaster.com/art...htaccess.phtml
http://www.newmediaone.com/scripts/index.shtml
scroll down to the error robot.

I hope this info helps

------------------
...:::End Of Line:::...
------------------
* uSexFan.com
* ICQ : 114683191
RedShoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 05:11 PM   #5
CDSmith
Too lazy to set a custom title
 
CDSmith's Avatar
 
Industry Role:
Join Date: May 2001
Location: My network is hosted at TECHIEMEDIA.net ...Wait, you meant where am *I* located at? Oh... okay, I'm in Winnipeg, Canada. Oops. :)
Posts: 51,460
Um, total dummy question, but where exactly does that code go?

Between the "head" "/head" tags?

Where??

Is it added to all html pages? HELP! (I put the "dummy" in "webmastering 4 dummies"
<font face="Arial">___________
CD
* <a href="http://www4.smutserver.com/babes/bgnetwork/submit.html" TARGET="_blank"><font color="#27FFFC">Babe Galleries Network</font></a> < -- submit galleries here
* <a href="http://www.oliver-klozov.com/cgi-bin/refer.cgi?ref=cdsmithok" TARGET="_blank"><font color="#CBE6FF">60% of all signups, 40% of all rebills</font></a> + High Quality free content, mthly cash bonuses
* <a href="http://members.home.net/cyberdogs/Anti-Censorship%20Site/" TARGET="_blank"><font color="#FFCCCC">Sites Against Censorship</a><font color="#EDDDDD"> Support us, support your future</font></font>
CDSmith is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 05:11 PM   #6
Web_Mistress
Confirmed User
 
Join Date: Feb 2001
Location: Las Vegas, NV
Posts: 374
Ok, I copied it and called it .htaccess ftp'd it in Ascii (it came out on one long line, is that ok?)

Named a file success.html uploaded it.

Typed in a page that didn't exsist and got file cannot be found.

??????
Web_Mistress is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 05:13 PM   #7
Web_Mistress
Confirmed User
 
Join Date: Feb 2001
Location: Las Vegas, NV
Posts: 374
CD Smith, it goes in a separate file called .htaccess and it is uploaded to every directory you want to protect. It will protect that directory, and all other sub directories.

If it doesn't work right, it can keep anyone from accessing your pages. Which mine keeps doing.

It has to be uploaded in ASCII to work.
Web_Mistress is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 05:16 PM   #8
TFCash
Confirmed User
 
Industry Role:
Join Date: Apr 2001
Posts: 1,738
Web_Mistress -

Are you sure that your host has .htaccess open for you ?? Sounds like they haven't given you permission to use .htaccess to override anything.


Tim
TFCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 05:20 PM   #9
justined
Confirmed User
 
Join Date: Mar 2001
Posts: 169
you also need to put you resolving ip in there:-
RewriteCond %{HTTP_REFERER} !^http://YOUR IP/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://YOUR IP/.*$ [NC]

or you can still get hotlinked via your ip addy.

J
justined is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 05:28 PM   #10
CDSmith
Too lazy to set a custom title
 
CDSmith's Avatar
 
Industry Role:
Join Date: May 2001
Location: My network is hosted at TECHIEMEDIA.net ...Wait, you meant where am *I* located at? Oh... okay, I'm in Winnipeg, Canada. Oops. :)
Posts: 51,460
You people really gotta learn to explain what you mean (Justin!!)

I made the .htaccess file (you didn't say whether it was a text file, or an html file or what??), I uploaded it in asc II mode into one of my little-used subfolders, and I can no longer access to one page in that folder.

You know, if one of you could just copy and paste a full working code, COMPLETE, we could just change the urls and use it, no?

<font face="Arial">___________
CD
* <a href="http://www4.smutserver.com/babes/bgnetwork/submit.html" TARGET="_blank"><font color="#27FFFC">Babe Galleries Network</font></a> < -- submit galleries here
* <a href="http://www.oliver-klozov.com/cgi-bin/refer.cgi?ref=cdsmithok" TARGET="_blank"><font color="#CBE6FF">60% of all signups, 40% of all rebills</font></a> + High Quality free content, mthly cash bonuses
* <a href="http://members.home.net/cyberdogs/Anti-Censorship%20Site/" TARGET="_blank"><font color="#FFCCCC">Sites Against Censorship</a><font color="#EDDDDD"> Support us, support your future</font></font>
CDSmith is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 05:45 PM   #11
Web_Mistress
Confirmed User
 
Join Date: Feb 2001
Location: Las Vegas, NV
Posts: 374
You have to use notepad, or something like Homesite. You can't use Frontpage CD, or anything like that that adds characters to it.

My host has tried about 10 different .htaccess files, and they will work for a little while, then I'll type in an address and I'll get a blur down in the status bar of it frantically trying to access a page...looks like it goes into an endless loop. When that happens, I just pull the .htaccess file off and bam, works fine.

I have no idea (and they don't either) know what causes that. I've asked them so many times to try and fix it, I hate to ask again, because they don't seem to get the same error.
Web_Mistress is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 05:48 PM   #12
CDSmith
Too lazy to set a custom title
 
CDSmith's Avatar
 
Industry Role:
Join Date: May 2001
Location: My network is hosted at TECHIEMEDIA.net ...Wait, you meant where am *I* located at? Oh... okay, I'm in Winnipeg, Canada. Oops. :)
Posts: 51,460
I don't use Frontpage, I use Textpad.

I got it working now.


<font face="Arial">___________
CD
* <a href="http://www4.smutserver.com/babes/bgnetwork/submit.html" TARGET="_blank"><font color="#27FFFC">Babe Galleries Network</font></a> < -- submit galleries here
* <a href="http://www.oliver-klozov.com/cgi-bin/refer.cgi?ref=cdsmithok" TARGET="_blank"><font color="#CBE6FF">60% of all signups, 40% of all rebills</font></a> + High Quality free content, mthly cash bonuses
* <a href="http://members.home.net/cyberdogs/Anti-Censorship%20Site/" TARGET="_blank"><font color="#FFCCCC">Sites Against Censorship</a><font color="#EDDDDD"> Support us, support your future</font></font>

[This message has been edited by CDSmith (edited 05-31-2001).]

[This message has been edited by CDSmith (edited 05-31-2001).]
CDSmith is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 05:49 PM   #13
CDSmith
Too lazy to set a custom title
 
CDSmith's Avatar
 
Industry Role:
Join Date: May 2001
Location: My network is hosted at TECHIEMEDIA.net ...Wait, you meant where am *I* located at? Oh... okay, I'm in Winnipeg, Canada. Oops. :)
Posts: 51,460
Yep, it works
<font face="Arial">___________
CD
* <a href="http://www4.smutserver.com/babes/bgnetwork/submit.html" TARGET="_blank"><font color="#27FFFC">Babe Galleries Network</font></a> < -- submit galleries here
* <a href="http://www.oliver-klozov.com/cgi-bin/refer.cgi?ref=cdsmithok" TARGET="_blank"><font color="#CBE6FF">60% of all signups, 40% of all rebills</font></a> + High Quality free content, mthly cash bonuses
* <a href="http://members.home.net/cyberdogs/Anti-Censorship%20Site/" TARGET="_blank"><font color="#FFCCCC">Sites Against Censorship</a>[i]<font color="#EDDDDD"> Support us, support your future</font></font>

[This message has been edited by CDSmith (edited 05-31-2001).]
CDSmith is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 06:04 PM   #14
justined
Confirmed User
 
Join Date: Mar 2001
Posts: 169
sorry CD for being a little vague.
A working copy for anyone else that might need it:- http://www.amateurlodge.com/hotstop.txt

J
justined is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 06:14 PM   #15
Web_Mistress
Confirmed User
 
Join Date: Feb 2001
Location: Las Vegas, NV
Posts: 374
Ok, I got it working, I had the line breaks wrong. What does that last line do? I put the URL to a sponsor, do they get that if they try to hotlink? Just curious. It does go to an error page I have set up now!

Thanks. Hopefully, I won't get the weirdness.

Web_Mistress is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 07:05 PM   #16
justined
Confirmed User
 
Join Date: Mar 2001
Posts: 169
the last line is the file types you're protecting (jpg, gif) it's set to stop any upper/lowercase combinations.

J
justined is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2001, 07:05 PM   #17
RedShoe
赤い靴 call me 202-456-1111
 
RedShoe's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
Mistress, be sure and contact your sponsor to see if they allow that. Sometimes they won't, so you might just want to check and make sure if it's ok to link them to your 404 redirect.

------------------
...:::End Of Line:::...
------------------
* uSexFan.com
* ICQ : 114683191
RedShoe 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.