Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8373927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:48:15+00:00 2026-06-09T14:48:15+00:00

I am hosting my website on a linux server with php5 (no mySQL). Now

  • 0

I am hosting my website on a linux server with php5 (no mySQL). Now I am the administrator, and I’m building my first website. I want to know about security, how do I secure my site from malicious injections and hackers? With the htaccess file? And what do I need to put in there?

Any help appreciated.

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:48:16+00:00Added an answer on June 9, 2026 at 2:48 pm

    If you have no SQL, you don’t have to worry about injection attacks.

    Security for your site depends on what you have running on your site. If it’s only PHP, I suggest keeping important code which may reveal things such as passwords and authentication keys or functions in a separate php file outside of your wwwroot and include them.

    Example:

    Your website runs in /home/wwwroot/

    Put your php files with important data or functions in /home/privatephp/

    Now in all your php files where you want to use those private functions or call on data that you want hidden, you simply use
    include (../privatephp/privatestuff.php); at the top of each php file.

    Your privatestuff.php file can contain such things as

    $adminusername="imtheadmin"; or $adminpassword="adminpassword";

    Then you can simply reference those variables in any PHP file where you have used the include command.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am hosting my website on a shared server, with a mysql database which
i'm hosting a website through a hosting company [1] on a linux/apache server. until
We are hosting a .NET website on Windows Server 2008 R2 (IIS 7.5) www.ourwebsite.com
I have a shared hosting where I have my website and MySQL database. I've
I'm hosting a website for a friend of me and I want to use
We have our own web server hosting our website that is open to the
What are the things to be done before hosting the website in internet server?
The server hosting my website doesn't have ffmpeg and I am not allowed to
I have a photo-hosting website, and I want to keep track of views to
We are building an image and file hosting website and we will save these

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.