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)
-   -   Htaccess question (https://gfy.com/showthread.php?t=102409)

Juicy D. Links 01-24-2003 09:48 PM

Htaccess question
 
How to i stop someone from typing in for example

www.gggg.com/juicy.js and downloding the .js file?

Snake Doctor 01-24-2003 10:09 PM

I would think you could add the "js" extension to the file you already have protecting your jpegs.

If you don't already have one, do a search on google for htaccess, there's plenty of good resources out there

Libertine 01-24-2003 10:15 PM

Quote:

Originally posted by juicylinks
How to i stop someone from typing in for example

www.gggg.com/juicy.js and downloding the .js file?

Virtually impossible if you want to retain functionality for at least 90% of the surfers.

(I am assuming you want to make it impossible for surfers to get the .js file)

Plugger 01-25-2003 01:59 AM

lenny2 is onthe right track, I would try referer protecting the .js file. It would be easier if the .js file were in it's own directory.

You might want to check your logs to see how the .js is called and what the referer is . . .

Voodoo 01-25-2003 02:01 AM

COMMAND PROMPT:

FTP gggg.com
USERNAME: XXXXXXX
PASSWORD: XXXXXXXX

cd www_root
ren juicy.js reallyjuicy.js

-----------DONE-------------

Voodoo 01-25-2003 02:02 AM

You can also put it in a different directory, and protect that directory with htaccess.


All times are GMT -7. The time now is 04:34 PM.

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