Jump to content

Recommended Posts

Posted

On my blog ( http://www.mountebank.org/blog ), I'm using a wordpress plugin called "authimage." It puts a little picture of a word (a "captcha") for commenters to type in before they're allowed to comment. The idea is that it prevents comment spam.

 

Authimage calls a php function "veriword." That's fine, it all works, but the manual gives this instruction:

 

"Put these in secure directories (not accessible by web users): • config file (veriword.ini) • font files • background files • dictionary file"

 

I don't know how to do that! Right now, those files are accessible to web users. How do I make them inaccessible?

Posted

Assuming the files aren't CGIs, you can put them in the directory above all your /public_html/ files--create a new folder called /private/ or whatever you like and put the files in there. In file manager, you just create the new folder in the first screen that opens up. If you're FTPing in, make sure your FTP program isn't set to go directly to /public_html/, and then add the new folder at the same level as (not in) /public_html/.

 

The path to these files (I'd assume you have to fill that in somewhere?) is

 

/home/cpanelusername/folderyoucreated/

 

If they're CGI, I think you have to do .htaccess magic to protect them. At least, schussat was suggesting CGI scripts won't run above the /public_html/ folder response to a question I asked.

Posted

Although nothing is truly "secure" (unless it's unplugged), generally anywhere above the public_html directory is a safe bet.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...