Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Problem with Security Images (Lite)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with Security Images (Lite)

 Post Reply Post Reply
Author
Black Hole View Drop Down
Newbie
Newbie
Avatar

Joined: 05 November 2004
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Black Hole Quote  Post ReplyReply Direct Link To This Post Topic: Problem with Security Images (Lite)
    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!
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.


Edited by -boRg-
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Black Hole View Drop Down
Newbie
Newbie
Avatar

Joined: 05 November 2004
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Black Hole Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.