Check your HOSTS file and make sure you are not blocking gs.apple.com.
Try to launch https://gs.apple.com: It should open the Apple site, and not be redirected to the Cydia server.
if this redirected to cydia server then
copy hosts file from this path
paste on desktop. open this in notepad.
add this line in the last .
in some case this line is there without " #" sign. if this line is there then u simply put" # " at the start of this line
save this and copy this file and past into this path.
replace with existing . yes.
close and then start the restore process.
now this will work. Insha Allah.