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)
-   -   help with .htaccess please (https://gfy.com/showthread.php?t=323692)

Easton 07-08-2004 08:20 PM

help with .htaccess please
 
yes i know there are probably 812 threads about this on GFy already but with no search feature what good is it?

so can someone plese help me with this?

here is what i have so far:
-------------------------------------------------------------------------------
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://slinkylinks.com
RewriteCond %{HTTP_REFERER} !^http://www.slinkylinks.com
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.slinkylinks.com/free.htm [L]

ErrorDocument 404 http://www.slinkylinks.com/free.htm
DirectoryIndex index1.htm
ExpiresActive on
ExpiresDefault A31536000
-------------------------------------------------------------------------------

i used this to help me http://developers.evrsoft.com/tools-...enerator.shtml then i uploaded to my main directory in ASCII mode and it doesn't work... what did i fuck up?


:helpme

JohnnyUtah 07-08-2004 08:28 PM

Easton, depending on the server...htaccess files can do strange shit...

Try this one:

-----------------------------------------------------------------

AuthGroupFile /dev/null

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourip.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourip/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourip:80/.*$ [NC]
RewriteRule .*([jJ][pP][eE][gG]|[jJ][pP][gG]|[gG][iI][fF])$ [F]

ErrorDocument 302 http://www.console-hell.com
ErrorDocument 400 http://www.console-hell.com
ErrorDocument 401 http://www.console-hell.com
ErrorDocument 403 http://www.console-hell.com
ErrorDocument 404 http://www.console-hell.com
ErrorDocument 408 http://www.console-hell.com
ErrorDocument 500 http://www.console-hell.com

Easton 07-08-2004 08:36 PM

thanks dude... i actually think i got it on my own...

i fucked with it a bit and it seems to be working now :)

let me test:

http://www.slinkylinks.com/images/easton.jpg

JohnnyUtah 07-08-2004 08:37 PM

Seems to work here
:thumbsup

Easton 07-08-2004 08:39 PM

dammit, not any more!!!

i get errors when accessing my TGP now!!! LOL

i need help!!!

Easton 07-08-2004 08:49 PM

ok i tweaked the code to this:

---------------------------------------------------------------------------------
RewriteEngine on
RewriteCond %haha123;HTTP_REFERER} !^http://www.slinkylinks.com.*$ [NC]
RewriteCond %haha123;HTTP_REFERER} !^http://slinkylinks.com.*$ [NC]
RewriteCond %haha123;HTTP_REFERER} !^http://www.slinkylinks.com/.*$ [NC]
RewriteCond %haha123;HTTP_REFERER} !^http://slinkylinks.com/.*$ [NC]
RewriteCond %haha123;HTTP_REFERER} !^http://www.slinkylinks.com80/.*$ [NC]
RewriteCond %haha123;HTTP_REFERER} !^http://slinkylinks.com:80/.*$ [NC]
RewriteRule .*([jJ][pP][eE][gG]|[jJ][pP][gG]|[gG][iI][fF])$ [F]

ErrorDocument 302 http://www.slinkylinks.com/free.htm
ErrorDocument 400 http://www.slinkylinks.com/free.htm
ErrorDocument 401 http://www.slinkylinks.com/free.htm
ErrorDocument 403 http://www.slinkylinks.com/free.htm
ErrorDocument 408 http://www.slinkylinks.com/free.htm
ErrorDocument 500 http://www.slinkylinks.com/free.htm



and i uploaded it to my main directory, so i assume it will gobern all folders that way... i don't see why this is so hard but it still doesn't work

:(

JohnnyUtah 07-08-2004 08:51 PM

Try this before your code

Options SymlinksIfOwnerMatch

Easton 07-08-2004 08:55 PM

great now my TGP and galleries are all down...

is there a way i can undo the .htaccess on the server?

JohnnyUtah 07-08-2004 08:56 PM

Yes, if you dont have root access on your box...
Just upload a blank htaccess file.
That will clear up anything.

JohnnyUtah 07-08-2004 08:59 PM

If you have root access
type ls -ax

And you'll see your file there...
Then just remove it

Easton 07-08-2004 09:07 PM

ok thanks, i've reset it to the way it was before i fucked with it

that still leaves me with the AHL problem tho... why is this so hard? LOL

Vox 07-08-2004 09:32 PM

Here's mine, maybe it will help

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com(/)?.*$ [NC]
RewriteRule .*\.(GIF|gif|jpg|jpeg|bmp|mpg|wmv)$ http://www.domain.com/ [R,NC,L]
IndexIgnore *
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^.*BackWeb.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo\Pump.* [OR]
RewriteRule /* http://www.sexsuche.tv/exitcon/get_l...&WMEC=5&nid=42 [L,R]

AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm

ErrorDocument 400 http://www.domain.com/index.html
ErrorDocument 401 http://www.domain.com/index.html
ErrorDocument 403 http://www.domain.com/index.html
ErrorDocument 404 http://www.domain.com/index.html
ErrorDocument 500 http://www.domain.com/index.html

Easton 07-08-2004 10:02 PM

thanks! but why does every single AHL code look so different? it all seems so complicated...

assuming i even get my htaccess code done right, exactly where should i park it? the main root directory? or only in folders that contain images, clips, etc?

venturi 07-08-2004 11:29 PM

Easton, hit me up on ICQ Friday (or tonight) - Sheri has my # and I'll work with you through this if you're still having probs. :)

Easton 07-09-2004 01:09 AM

Quote:

Originally posted by venturi
Easton, hit me up on ICQ Friday (or tonight) - Sheri has my # and I'll work with you through this if you're still having probs. :)
thanks very much bro, i may just do that! :winkwink:


All times are GMT -7. The time now is 10:55 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123