SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,721
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    How can I prevent users from blogging?

    Basic summary. I have a website that allows me to blog stuff which will be displayed throughout the website. There are no members (no login stuff) and right now my current "blog form" is here

    I was wondering how I can prevent users from going to a URL (whetehr it stays that or not) and blog stuff there. Password protect it somehow? Any input?

    I could just type it into the database but I'd prefer to stick to using a form.
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,323
    Mentioned
    63 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by RyanReese View Post
    I could just type it into the database but I'd prefer to stick to using a form.
    i have been typing blog entries into my database for years, i'm too lazy to write a form and secure it properly



    first of all, you leave yourself open to all kinds of malicious attacks with a form

    not to mention ordinary spam

    but yeah, just type it into your database until you can secure that form
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,721
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by r937 View Post
    i have been typing blog entries into my database for years, i'm too lazy to write a form and secure it properly



    first of all, you leave yourself open to all kinds of malicious attacks with a form

    not to mention ordinary spam

    but yeah, just type it into your database until you can secure that form
    The issue I'm having is how can users never even know this exists? Fool proof. I'm not worried about security for now until I actually get an article or two written up .
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  4. #4
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,721
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Got it all sorted . Basically just created a form and the right password must be done there (if not, emails are sent regarding IP and what they did). And I have it require()'d on the blog form page .
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  5. #5
    SitePoint Enthusiast rgf207's Avatar
    Join Date
    Feb 2006
    Location
    Maryland
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could password protect the entry page with htaccess

  6. #6
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,721
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by rgf207 View Post
    You could password protect the entry page with htaccess
    Didn't do it with htaccess but I did password protect it via a require() page.
    Always looking for web design/development work.
    http://www.CodeFundamentals.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •