i have programmed this access list in a cisco router :
access-list 130 deny tcp host 172.16.40.10 host 66.1.2.254 eq www
this to disable access to web server 66.1.2.254 from PC1 172.16.40.10 when looking for http pages
but,i noticed that the ping is also inhibited, so i can't ping from pc1 to web server which should not happened as i deny only web pages
More than likely your Cisco router is not configured to pass ping packets or the firewall configuration of target host of the ping is not configured to permit a ping.
In the first case examine the access list of the router to ensure it is configured for passing ping packets.
In the second case ensure the firewall of the target host is configured to permit a ping.
Have you attempted to ping the same target host from another host on the same subnet as PC1?
in fact i am doing this on packet tracer.
i linked another pc to the same network but the same problem i can't ping the server from this new pc, this should not happened since i specified only one host