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 Mark Forums Read
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 04-20-2011, 01:22 AM   #1
BJ
Confirmed User
 
BJ's Avatar
 
Join Date: Mar 2002
Location: asia
Posts: 5,590
Super N00B question

One of my sites relies on a .js file to function. Right now anyone can see the .js file. I want to move it to a password protected folder and load it from there. So if anyone tries to see it they can't

If I password protect a folder via cpanel, put the script in that, how do I get it to load properly?

Thanks
BJ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2011, 01:35 AM   #2
daniel_webcams
Confirmed User
 
daniel_webcams's Avatar
 
Industry Role:
Join Date: Nov 2008
Posts: 2,491
you could do that through a htaccess file.

Allow and enable access from certain IP (your server IP)

Say you have a permanent IP and you want to administer the site via /admin and protect the directory from the rest of the world once ‘n’ for all, then you will want the following .htaccess directives:

order deny, allow
deny from all
allow from 12.34.56.78

I think this is what you need
(http://www.kavoir.com/2009/01/htacce...ry-access.html)
__________________
Daniel,

Skype: [email protected]
ICQ: 354-220-339
Email: daniel@adultforce[dot]com


daniel_webcams is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2011, 01:39 AM   #3
BJ
Confirmed User
 
BJ's Avatar
 
Join Date: Mar 2002
Location: asia
Posts: 5,590
thank you sir
BJ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2011, 01:41 AM   #4
AdultKing
Raise Your Weapon
 
AdultKing's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
Does the site rely on the .js file for everybody to use the site ? or just for your use ?
AdultKing is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2011, 01:45 AM   #5
BJ
Confirmed User
 
BJ's Avatar
 
Join Date: Mar 2002
Location: asia
Posts: 5,590
everybody needs it or the site does not work, if someone has java disabled it offers an alternative. I just don't want people looking at the .js file
BJ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2011, 01:46 AM   #6
AdultKing
Raise Your Weapon
 
AdultKing's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
If everybody needs to use the .js file for it to work, then putting it in a password protected area will prevent browsers from loading it, thus the site will not work.
AdultKing is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2011, 01:48 AM   #7
AdultKing
Raise Your Weapon
 
AdultKing's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
Stackoverflow reference:

http://stackoverflow.com/questions/1...avascript-code
AdultKing is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2011, 01:49 AM   #8
cam_girls
So Fucking Banned
 
Industry Role:
Join Date: Apr 2009
Posts: 2,968
you can't hide a client side script
cam_girls is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2011, 04:30 AM   #9
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
Quote:
Originally Posted by cam_girls View Post
you can't hide a client side script
right...
you can just encode it somehow...
but it can be decoded eventually
__________________
Make a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2011, 06:21 AM   #10
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
you can make it harder, but you won't be able to hide it completely...
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2011, 07:34 AM   #11
twistedkinkcash
Registered User
 
twistedkinkcash's Avatar
 
Industry Role:
Join Date: Apr 2011
Posts: 58
This is the internets..srs bsnss
twistedkinkcash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2011, 11:41 AM   #12
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Quote:
Originally Posted by HomerSimpson View Post
right...
you can just encode it somehow...
but it can be decoded eventually
And decoding it is always trivial. All one must do is replace "eval" with "alert" and it will pop up a box with the full code.
Some encoders may require that "eval" be replaced with "alert" more than once, but they are all trivial.

Quote:
if someone has java disabled it offers an alternative. I just don't want people looking at the .js file
"fart" and "fort" are two words that sound similar, but otherwise are completely unrelated.
Similarly, "JavaScript" and "Java" are two completely unrelated things created at different times
by different companies. The people selling LiveScript renamed it "JavaScript" because at the
time Java was a hot buzzword. It's the same thing as Xbox 360, Anderson Cooper 360,
Symantec Norton 360, Nordic Track 360 etc.

In other words, turning off Java affects your JavaScript just as much as turning off your XBox
affects Anderson Cooper - not at all, even though they both have "360" in their name.
__________________
For historical display only. This information is not current:
support&#64;bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2011, 11:45 AM   #13
TripleXPrint
Confirmed User
 
TripleXPrint's Avatar
 
Join Date: Apr 2007
Posts: 983
Quote:
Originally Posted by raymor View Post
In other words, turning off Java affects your JavaScript just as much as turning off your XBox affects Anderson Cooper - not at all, even though they both have "360" in their name.
I laughed. Good analogy.
__________________
Skype: Triplexprint
TripleXPrint 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
Thread Tools



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.