PDA

View Full Version : URL Checking


springdot
09-13-2005, 04:23 PM
Hi all

Just a quick question - when someone submits a link to the directory how does the script check the url they submit?

I'm asking because I am now getting the "The URL could not be validated. Either the page does not exist or the server cound not be contacted. " message and suspect it is a firewall issue (not letting the server connect out to get the info it needs).

I need to see what info the script needs and how it gets it in order to set the firewall up to allow it...


Thanks
James

yktan
09-14-2005, 08:26 AM
Hi springdot, the script is using standard ports to do the url validations:
(1) Port 80 = http
(2) Port 443 = https
(3) Port 21 = ftp.

I imagine you will just have to allow connections to port 80 and 443 from localhost (outbound).

Regards,
York Kie

springdot
09-14-2005, 02:06 PM
Hi yktan

Thanks very much for that.

One other question - if I wanted to disable the script checking whether the submitted link was active or not, is there an easy way to do this?

I've had a look at submit.php and functions.php but can't see the obviously way to stop this happening.


Thanks
James

yktan
09-14-2005, 05:09 PM
Hi springdot, to disable the online validation of a link, do the following:

Open \submit.php
Find and delete:
Content visible to registered users only.

Open \templates\submit.tpl
Find and delete:
Content visible to registered users only.

Regards,
York Kie

vkaryl
09-14-2005, 05:35 PM
yktan, is there something similar that can be done to make it unnecessary to include a URL at all? I posted a question the other day, but didn't get any response, so may not have made it clear what I was wanting to do.... this is the link to my earlier question:

http://www.phplinkdirectory.com/forum/viewtopic.php?t=704

Thanks....

springdot
09-14-2005, 05:46 PM
Brilliant

Thanks very much :)

yktan
09-14-2005, 05:58 PM
My pleasure, springdot.

Regards,
York Kie