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 02-14-2002, 12:42 AM   #1
AdultWire
Confirmed User
 
Join Date: Feb 2002
Location: Toronto, ON
Posts: 962
Any geeks here? Let me stick my fuzzy logic in your bash script.

Anyone know the difference between the md5 hashes php generates and a unix md5 password hash? Setting up a freehost and I don't want to use DES passwords.
__________________
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
AdultWire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-14-2002, 03:00 AM   #2
AdultWire
Confirmed User
 
Join Date: Feb 2002
Location: Toronto, ON
Posts: 962
Ok.. this might be more up your alley:

What types of files does a gallery owner REALLY need to serve.

I'm intending to limit it down to these types:

.html .htm (unconditionally)
.jpg .gif .png (if the refferer is good)

Am I missing anything vital? I'll setup another one that allows movies under 400k later, but I need to get this up and running pretty fast so i can be bling bling like the big boys.

I ate wendy's and my $15 is gone.
__________________
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
AdultWire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-14-2002, 03:03 AM   #3
[Labret]
Registered User
 
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
Only allow them to upload .bmp's, .pdfs, and .html
[Labret] is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-14-2002, 03:04 AM   #4
[Labret]
Registered User
 
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
oh, and .tar.gz

that ones important
[Labret] is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-14-2002, 03:28 AM   #5
AdultWire
Confirmed User
 
Join Date: Feb 2002
Location: Toronto, ON
Posts: 962
Can anyone help me with this rewrite rule?

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !^.*\.html$ [NC]
RewriteCond %{REQUEST_FILENAME} !^.*\.htm$ [NC]
RewriteCond %{REQUEST_FILENAME} !^.*\.jpg$ [NC]
RewriteCond %{REQUEST_FILENAME} !^.*\.jpeg$ [NC]
RewriteCond %{REQUEST_FILENAME} !^.*\.gif$ [NC]
RewriteCond %{REQUEST_FILENAME} !^.*\.png$ [NC]
RewriteCond %{REQUEST_FILENAME} !^.*\.swf$ [NC]
RewriteRule ^.*$ - [F]

This works fine, except when you try to get a directory index without specifying a filename. So I tried adding:

RewriteCond %{REQUEST_FILENAME} !^$ [NC]

as part of the rule, but to no avail -- I still get a forbidden on directory indexes unless I specify the filename.
__________________
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
AdultWire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-14-2002, 05:09 AM   #6
AdultWire
Confirmed User
 
Join Date: Feb 2002
Location: Toronto, ON
Posts: 962
If anyone is interested, I've seriously simplified it, but it still has the same flaw.. my rule is now:

RewriteBase /
RewriteRule !\.(html|htm|gif|jpg|swf|css|png)$ - [F]
__________________
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
AdultWire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-14-2002, 07:18 AM   #7
AdultWire
Confirmed User
 
Join Date: Feb 2002
Location: Toronto, ON
Posts: 962
I guess the geeks are only up during the day.

Just in case someone else needs this:

<Directory /whatever/dir/your/freehosting/is/in/>
RewriteEngine on

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.theadultwire.com.*$ [NC]
RewriteRule ^.*\.(gif|jpg|swf|css|png)$ - [F]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(html|htm|gif|jpg|swf|css|png)$ - [F]

Action add-footer /cgi-bin/wrapper.sh
AddHandler add-footer .html .htm

DirectoryIndex index.html index.htm default.html default.htm
Options None
Options SymLinksIfOwnerMatch
</Directory>

---

Now why didn't I think of that in the first place???
__________________
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
AdultWire 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.