|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
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 |
|
|
|
|
|
#2 |
|
Confirmed User
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)
__________________
|
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Mar 2002
Location: asia
Posts: 5,590
|
thank you sir
|
|
|
|
|
|
#4 |
|
Raise Your Weapon
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 ?
|
|
|
|
|
|
#5 |
|
Confirmed User
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
|
|
|
|
|
|
#6 |
|
Raise Your Weapon
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.
|
|
|
|
|
|
#7 |
|
Raise Your Weapon
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
|
|
|
|
|
|
|
#8 |
|
So Fucking Banned
Industry Role:
Join Date: Apr 2009
Posts: 2,968
|
you can't hide a client side script
|
|
|
|
|
|
#9 |
|
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
|
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:
|
|
|
|
|
|
#10 |
|
<&(©¿©)&>
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 |
|
|
|
|
|
#11 |
|
Registered User
Industry Role:
Join Date: Apr 2011
Posts: 58
|
This is the internets..srs bsnss
|
|
|
|
|
|
#12 | ||
|
Confirmed User
Join Date: Oct 2002
Posts: 3,745
|
Quote:
Some encoders may require that "eval" be replaced with "alert" more than once, but they are all trivial. Quote:
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@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 |
||
|
|
|
|
|
#13 | |
|
Confirmed User
Join Date: Apr 2007
Posts: 983
|
Quote:
__________________
Skype: Triplexprint |
|
|
|
|