Jump to content

Recommended Posts

Many apologies if this is the wrong place to post this!

 

I am not sure but is it possible to make like a page where you can add bans to the .htaccess without FTP and editing the file. Just a little page that will direct it to .htaccess?

 

I am thinking out loud here so bare with me. Let me know. :) If not php, maybe other languages?

yes I just wrote this into my cms like 5 minutes ago lol

 

The thing you can not do (at least I think) is have a php file actually dynamically run the .htaccess file.  Meaning pull it from a database and ehco it out on each page request.

 

But realistically you can use file handlers as stated above to open the .htaccess file and then use fwrite to save the changes.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.