Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 9th, 2006, 10:43 AM   #1
DBZ
Newbie
 
Join Date: Feb 2006
Posts: 22
Rep Power: 0 DBZ is on a distinguished road
Exclamation Need javascript for the following, read here

Password protection
Blocking users by IP
Blocking bad bots and site rippers (aka offline browsers)
Preventing hot linking of your images and other file types

I need those stuff for my site in javascript not .htacess files
DBZ is offline   Reply With Quote
Old Apr 9th, 2006, 11:23 AM   #2
mongeau
Newbie
 
mongeau's Avatar
 
Join Date: Apr 2006
Location: Fargo, ND
Posts: 29
Rep Power: 0 mongeau is on a distinguished road
Send a message via MSN to mongeau
Quote:
Originally Posted by DBZ
Password protection
Blocking users by IP
Blocking bad bots and site rippers (aka offline browsers)
Preventing hot linking of your images and other file types

I need those stuff for my site in javascript not .htacess files
Too bad Javascript can be read by anyone, so if you keep passwords protected on your site, people will be able to see them. Why are you against .htaccess files? It is the simplest, and best solution for you.
__________________
I wish I was you, so I could be friends with me.
mongeau is offline   Reply With Quote
Old Apr 9th, 2006, 11:33 AM   #3
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 597
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
This is the Java forum... please use the JavaScript/VBScript Forum
__________________
Quote:
Originally Posted by DaWei View Post
Well, it's better than Pen Islands url....;)

crawforddavid2006 is offline   Reply With Quote
Old Apr 9th, 2006, 12:22 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Javascript is not Java. Access to the server cannot be restricted by a client (except for that one client). Code distributed to each client in an attempt to distribute server-access control methods is like shoveling shit against the tide. Go study the client/server paradigm. You are preceded by many successful designers. Their conclusions are worth studying before you unilaterally decide they're worthless and discard them.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 9th, 2006, 12:32 PM   #5
mongeau
Newbie
 
mongeau's Avatar
 
Join Date: Apr 2006
Location: Fargo, ND
Posts: 29
Rep Power: 0 mongeau is on a distinguished road
Send a message via MSN to mongeau
Quote:
Originally Posted by DaWei
Code distributed to each client in an attempt to distribute server-access control methods is like shoveling shit against the tide.
I literally snorted my morning cereal out of my nose when I read that!
__________________
I wish I was you, so I could be friends with me.
mongeau is offline   Reply With Quote
Old Apr 9th, 2006, 3:45 PM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Be thankful it wasn't scotch. That stuff burns unless you have a good buildup of boogers.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 9th, 2006, 8:28 PM   #7
Toro
Hobbyist Programmer
 
Toro's Avatar
 
Join Date: Apr 2006
Posts: 136
Rep Power: 0 Toro is an unknown quantity at this point
Quote:
Originally Posted by DaWei
Be thankful it wasn't scotch. That stuff burns unless you have a good buildup of boogers.
lol and again DBZ, Javascript != Java.

Java = Application/Programs like Limewire, Notepad, or etc.
Javascript = Dynamic Web Pages like wwe.com, yahoo.com, etc.
Toro is offline   Reply With Quote
Old Apr 9th, 2006, 8:16 PM   #8
DBZ
Newbie
 
Join Date: Feb 2006
Posts: 22
Rep Power: 0 DBZ is on a distinguished road
DaWei are you insulting me?
DBZ is offline   Reply With Quote
Old Apr 9th, 2006, 8:44 PM   #9
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
Quote:
Originally Posted by DBZ
DaWei are you insulting me?
No, it seems to me that he's simply making a suggestion.

~Moved
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote
Old Apr 9th, 2006, 8:55 PM   #10
Toro
Hobbyist Programmer
 
Toro's Avatar
 
Join Date: Apr 2006
Posts: 136
Rep Power: 0 Toro is an unknown quantity at this point
Quote:
Originally Posted by Mjordan2nd
~Moved
I wish I had power like that, lol.
Toro is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:05 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC