![]() |
.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. |
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 If it bounces you to success.html then you've done it. http://bbs.gofuckyourself.com/board/smile.gif 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 |
"I put the master in webmaster"
You'd better fucken believe it. http://bbs.gofuckyourself.com/board/smile.gif |
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 http://bbs.gofuckyourself.com/board/smile.gif 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 http://bbs.gofuckyourself.com/board/smile.gif ------------------ ...:::End Of Line:::... ------------------ * uSexFan.com * ICQ : 114683191 |
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 http://members.home.net/cyberdogs/An...cool_shine.gif * <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> |
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. ?????? |
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 -
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 |
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 |
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 http://members.home.net/cyberdogs/An...cool_shine.gif * <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> |
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. |
I don't use Frontpage, I use Textpad.
I got it working now. <font face="Arial">___________ CD http://members.home.net/cyberdogs/An...cool_shine.gif * <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).] |
Yep, it works
<font face="Arial">___________ CD http://members.home.net/cyberdogs/An...cool_shine.gif * <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).] |
sorry CD for being a little vague.
A working copy for anyone else that might need it:- http://www.amateurlodge.com/hotstop.txt J |
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! http://bbs.gofuckyourself.com/board/smile.gif
Thanks. Hopefully, I won't get the weirdness. |
the last line is the file types you're protecting (jpg, gif) it's set to stop any upper/lowercase combinations.
J |
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 |
All times are GMT -7. The time now is 09:11 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123