Print Page | Close Window

Problem with Security Images (Lite)

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=12449
Printed Date: 11 April 2026 at 1:20pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Problem with Security Images (Lite)
Posted By: Black Hole
Subject: Problem with Security Images (Lite)
Date Posted: 05 November 2004 at 5:33am
Hey, I'm having problems getting the login Security Number images to work. I don't know whats up with them, I tried looking at the security_image.asp file but couldn't really see much as I no good with ASP. Heres the code from the security_images.asp, (with the initital Terms and Condition code removed for ease of readin here)

"<% @ Language=VBScript %>
<% Option Explicit %>
<%

'Set the buffer to true
Response.Buffer = True

'Declare variables
Dim objADOStream           'Holds the stream object
Dim intImageNumber       &nbs p;  'Holds which image number to show
Dim strImagePath           'Holds the image path and image name

'Initiliase variables
strImagePath = "security_images/"


'Get the image number
intImageNumber = CInt(Request.QueryString("I"))

'Get the image security code number to display
intImageNumber = Mid(Session("lngSecurityCode"), intImageNumber, 1)
     
'Get the path and the image to show
strImagePath = Server.MapPath(strImagePath & intImageNumber & ".gif")
    


'Set the stream object
Set objADOStream = server.createobject("ADODB.Stream")

'Open the streem oject
objADOStream.Open

'Set the stream object type to binary
objADOStream.Type = 1

'Load in the image gif
objADOStream.LoadFromFile strImagePath



'Set the right response content type for the image
Response.ContentType = "image/gif"

'Display image
Response.BinaryWrite objADOStream.Read

'Flush the response object
Response.Flush


'Clean up
objADOStream.Close
Set objADOStream=Nothing

%>

I thought I may be able to disable the need for a Security Code when registering from the Admin menu, but I couldn't find anything.
The forum is located on www.blackholemusic.co.uk, just hit Forum from the homepage.

Thanks in advance!



Replies:
Posted By: WebWiz-Bruce
Date Posted: 05 November 2004 at 11:51am
Most hosts only allow a limited amount of features of ASP work on their free accounts as they offer them as a taster.

A number of free hosts recently have disabled the use of the ADO.Stream object (1asphost being the main one), stating that there is a security issue with it, which means that the security images will not work, so I'm afarid that web wiz forums can not be used at the present time with these free web hosts that have disabled the use of the ADO.Stream.

Funny how no paid host has done the same, but then these free hosts have to find away to get you to upgrade to a full acount.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: theSCIENTIST
Date Posted: 05 November 2004 at 5:45pm
You may be able to generate numeric charaters as opposed to images for that matter, this is also a suggestion to Borg to suplly an option for this, the only problem would be, the main point of using images is to avoid automated registrations, so bots can't read the images, but I guess this sort of thing is not seen much now a days, I guess.

-------------
:: http://www.mylittlehost.com/ - www.mylittlehost.com


Posted By: Black Hole
Date Posted: 06 November 2004 at 6:08am
Hmmmm... sounds like I may aswell remove the Web Wiz Forum from my account then. Which is a bugger, because I've used it loads before and its worked great.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net