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 7632491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:38:22+00:00 2026-05-31T06:38:22+00:00

how can i control on submitted Urls if the link is to an image

  • 0

how can i control on submitted Urls if the link is to an image file? and also how can i sanitize any kind of hack attack by that url?

i’m using Codeigniter maybe some good library to control submitted urls ?

  • 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-05-31T06:38:24+00:00Added an answer on May 31, 2026 at 6:38 am

    Why not let apache (or nginx, etc.) serve your static files for you?

    If you serve them through php–CodeIgniter or not–you open yourself up to a much greater opportunity for hacks.

    Additionally, you’ll probably run a minimum of 3MB of memory per request through CI, whereas a static file server will usually run at the file’s size or less.

    I could keep going. In fact, I will. CI has issues with seemingly random session expiration when serving resources (i.e. images, AJAX, etc.)

    Are you still reading this? Serve your static files through apache.

    UPDATE:

    I assumed by your “submitted URL” language that it was the URI in question. Now it seems to be a question about validating user submitted input data. If it’s a URL, I assume it’s an image on a remote server. For this case, you’ll need to use cURL (or another http wrapper) to download headers for that URL. If the Content-Type header is present, you can use that to determine whether the file is an image.

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

Sidebar

Related Questions

I believe that UIView objects can delegate control to views in iOS programming. However,
I know it's by design that you can't control what happens when an object
I was wondering what settings an application can control to improve battery life in
Can we control/give our page security depending the user groups in symfony 1.4. How
how can i control swf background transparency in vb.net.........either with flash.ocx or if there
How can i control all my forms from main () Form1 frm1 = new
I have developed a control in C#. Among other things this control can popup
how do i connect a web site and then how can i control its
I have a firmware for an USB module I can already control by visual
if i have two media players in form1 and form2 respectively....how can i control

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.