BlockPage reverting to default after edit

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

BlockPage reverting to default after edit

Postby aperia » Jun 18 14 10:22 am

I have tried editing the blockpage from within my rules. The page saves and stays for a while, but is soon after reverted back to the default. I've created a new blockpage with a different name, saved that, applied it and the same happens to it. I found the default blockpage.html under ProgramData\Qbik\WinGate\WebActivity\BlockPages, but cannot save over it no matter what I use. I've run NotePad as administrator, changed permissions on the file to where Everyone has full privileges... nothing works. Is this a bug or is there another way to edit the blockpage so that it doesn't get overwritten?
aperia
 
Posts: 13
Joined: Jun 29 12 7:17 am

Re: BlockPage reverting to default after edit

Postby adrien » Jun 18 14 6:10 pm

Hi

Which version of WinGate is this?

Regards

Adrien de Croy
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: BlockPage reverting to default after edit

Postby aperia » Jun 19 14 9:03 am

enterprise 8.2.1.7411
aperia
 
Posts: 13
Joined: Jun 29 12 7:17 am

Re: BlockPage reverting to default after edit

Postby aperia » Jun 20 14 3:33 am

I finally got this working, but had to do a little hacking. You cannot edit the BlockPage.html file even after stopping the WinGate service, so I had to hack a bit. First, I stopped the Qbik WinGate Engine service. I opened TaskManager and made sure GateKeeper.exe and WinGate.exe were not running. I created a new file named BlockPage2.html under C:\ProgramData\Qbik\WinGate\WebActivity\BlockPages containing the code I wanted displayed. Then I opened regedit and modified the following REG_SZ value:

HKLM\SOFTWARE\Wow6432Node\Qbik Software\WinGate\WebActivity\Rules\
DefaultBlockPageId = BlockPage2.html

I restarted the WinGate service and continued hacking even though this probably was all I needed to do. However, I didn't want a second html file showing up in all the rules, so I edited the original file, BlockPage.html, with the code I wanted displayed, saved it (it is now editable since the app is not pointing to it), stopped the service, modified the registry value above back to its original value, BlockPage.html, then restarted the service. Done and done.

This is a massive amount of work just to make sure the block page is not overwritten after a time. This would be a great bug fix because I enjoy fiddling with it and making it look the way I want.
aperia
 
Posts: 13
Joined: Jun 29 12 7:17 am

Re: BlockPage reverting to default after edit

Postby adrien » Jun 20 14 8:17 pm

Hi

thanks for this information, we've logged a defect for this, and are looking into it.

Regards

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: BlockPage reverting to default after edit

Postby adrien » Jun 23 14 2:30 pm

Hi

I just checked into this one. Is the block page you were trying to edit marked as read only?

Any problems saving this file should be logged.

Regards

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland


Return to WinGate

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron